From 13273e4ee47f8a061ead338ad0d904616ecfc03e Mon Sep 17 00:00:00 2001 From: avijenkins Date: Wed, 23 Sep 2026 09:04:13 +0000 Subject: [PATCH] Updated assets for go models and clients Signed-off-by: avijenkins --- go/clients/albservicesassetresponse_client.go | 95 +++++++++++++++ go/clients/alertcount_client.go | 95 +++++++++++++++ go/clients/authtokencreateresponse_client.go | 112 ++++++++++++++++++ go/clients/avi_client.go | 80 +++++++++++++ go/clients/checkpasswordresponse_client.go | 95 +++++++++++++++ .../cloudlicensesubscriberesult_client.go | 95 +++++++++++++++ go/clients/cluster_client.go | 112 ++++++++++++++++++ go/clients/configexportbundleinfo_client.go | 95 +++++++++++++++ go/clients/controllerbannerlist_client.go | 95 +++++++++++++++ .../controllerinventoryresponse_client.go | 95 +++++++++++++++ go/clients/controllerlicense_client.go | 112 ++++++++++++++++++ go/clients/controllerversion_client.go | 95 +++++++++++++++ .../defaultvaluesaugmentation_client.go | 95 +++++++++++++++ go/clients/dnslookupresult_client.go | 95 +++++++++++++++ go/clients/eventlog_client.go | 95 +++++++++++++++ ...ileserviceipamdnsscriptuploadack_client.go | 95 +++++++++++++++ go/clients/fileservicelisting_client.go | 95 +++++++++++++++ go/clients/gslbfileserviceuploadack_client.go | 95 +++++++++++++++ go/clients/gslbsiteops_client.go | 112 ++++++++++++++++++ go/clients/imageinventory_client.go | 95 +++++++++++++++ .../imagerawinventoryresponse_client.go | 95 +++++++++++++++ go/clients/initialdata_client.go | 95 +++++++++++++++ go/clients/inventorymapresponse_client.go | 95 +++++++++++++++ go/clients/licenseusageinfo_client.go | 95 +++++++++++++++ go/clients/licensingactionresult_client.go | 95 +++++++++++++++ .../licensingserialkeyrequest_client.go | 95 +++++++++++++++ go/clients/networksubnetlist_client.go | 95 +++++++++++++++ go/clients/objectgraphlist_client.go | 95 +++++++++++++++ go/clients/poolinventoryserverlist_client.go | 95 +++++++++++++++ go/clients/refreshsessionresponse_client.go | 95 +++++++++++++++ go/clients/segroupresumeparams_client.go | 95 +++++++++++++++ go/clients/segroupversion_client.go | 95 +++++++++++++++ go/clients/seversion_client.go | 95 +++++++++++++++ go/clients/switchtotenantresponse_client.go | 95 +++++++++++++++ ...ystemconfigurationcompliancemode_client.go | 95 +++++++++++++++ go/clients/systemusertokencheckout_client.go | 95 +++++++++++++++ go/clients/uierrorack_client.go | 95 +++++++++++++++ go/clients/userpreferences_client.go | 95 +++++++++++++++ go/clients/usertenantlistresponse_client.go | 95 +++++++++++++++ go/clients/usertokencheckout_client.go | 95 +++++++++++++++ go/clients/vimgrvcenterruntime_client.go | 112 ++++++++++++++++++ go/models/a_l_b_services_asset_response.go | 25 ++++ .../a_l_b_services_file_download_metadata.go | 9 ++ go/models/a_w_s_login.go | 28 +++++ go/models/alert_count.go | 16 +++ go/models/alert_count_entry.go | 22 ++++ go/models/api_c_configuration.go | 9 ++ .../apic_agent_bridge_domain_vrf_change.go | 9 ++ go/models/apic_agent_generic_event_details.go | 9 ++ go/models/apic_agent_vs_network_error.go | 9 ++ go/models/app_learning_params.go | 9 ++ go/models/auth_token_create_response.go | 30 +++++ ...auth_token_create_response_api_response.go | 21 ++++ go/models/burst_resource.go | 28 +++++ go/models/cc_add_vnics_req.go | 26 ++++ go/models/cc_create_se_req.go | 82 +++++++++++++ go/models/cc_del_vnics_req.go | 23 ++++ go/models/cc_delete_se_req.go | 17 +++ go/models/cc_host_info.go | 26 ++++ go/models/check_password_response.go | 13 ++ go/models/cloud_license_subscribe_result.go | 17 +++ go/models/cluster.go | 40 +++++++ go/models/cluster_api_response.go | 21 ++++ go/models/cluster_version_info.go | 38 ++++++ go/models/cluster_warm_reboot_event.go | 9 ++ go/models/clustify_info.go | 31 +++++ go/models/config_export_bundle_info.go | 18 +++ go/models/config_pb_attributes.go | 9 ++ .../controller_backup_scheduler_fault.go | 19 +++ go/models/controller_banner_entry.go | 26 ++++ go/models/controller_banner_list.go | 20 ++++ go/models/controller_cluster_fault.go | 19 +++ go/models/controller_deprecated_api_fault.go | 13 ++ go/models/controller_inactive_node.go | 16 +++ go/models/controller_inventory_faults.go | 31 +++++ go/models/controller_inventory_response.go | 17 +++ go/models/controller_license.go | 78 ++++++++++++ go/models/controller_license_api_response.go | 21 ++++ go/models/controller_license_fault.go | 22 ++++ go/models/controller_migration_fault.go | 16 +++ go/models/controller_ssl_profile_fault.go | 13 ++ go/models/controller_system_limits_fault.go | 16 +++ go/models/controller_version.go | 24 ++++ ...ate_management_service_access_grant_req.go | 25 ++++ go/models/create_management_service_req.go | 25 ++++ go/models/cred_params.go | 25 ++++ go/models/cumulative_license.go | 31 +++++ go/models/default_values_augmentation.go | 16 +++ ...fault_values_augmentation_default_entry.go | 16 +++ ..._values_augmentation_default_refs_entry.go | 16 +++ go/models/default_values_url_list.go | 13 ++ go/models/default_values_uuid_list.go | 13 ++ go/models/dns_domain.go | 17 +++ go/models/dns_lookup_result.go | 20 ++++ go/models/dns_rate_profile.go | 9 ++ go/models/error.go | 16 +++ go/models/event_gen_params.go | 25 ++++ go/models/federation_checkpoint.go | 9 ++ go/models/file_service_entry.go | 31 +++++ go/models/file_service_entry_api_response.go | 21 ++++ ...file_service_ipam_dns_script_upload_ack.go | 9 ++ go/models/file_service_listing.go | 17 +++ go/models/gslb_dns_geo_update.go | 9 ++ go/models/gslb_dns_se_info.go | 9 ++ go/models/gslb_file_object_runtime.go | 37 ++++++ go/models/gslb_file_service_upload_ack.go | 9 ++ go/models/gslb_hdr.go | 28 +++++ go/models/gslb_site_metadata.go | 13 ++ go/models/gslb_site_ops.go | 45 +++++++ go/models/gslb_site_ops_api_response.go | 21 ++++ go/models/gslb_site_ops_obj.go | 55 +++++++++ .../gslb_site_ops_stale_object_status.go | 13 ++ go/models/image_inventory.go | 16 +++ go/models/image_inventory_info.go | 19 +++ go/models/image_inventory_version.go | 16 +++ go/models/image_raw_inventory_entry.go | 16 +++ go/models/image_raw_inventory_response.go | 20 ++++ go/models/image_raw_inventory_runtime.go | 16 +++ go/models/in_use_info.go | 19 +++ go/models/infoblox_subnet_range.go | 22 ++++ go/models/initial_data.go | 55 +++++++++ go/models/inventory_map_pool.go | 28 +++++ go/models/inventory_map_pool_group_member.go | 16 +++ go/models/inventory_map_pool_group_ref.go | 22 ++++ ...ventory_map_pool_group_ref_api_response.go | 21 ++++ .../inventory_map_pool_network_servers.go | 13 ++ .../inventory_map_pool_networks_entry.go | 16 +++ go/models/inventory_map_pool_server.go | 19 +++ go/models/inventory_map_pool_server_config.go | 13 ++ .../inventory_map_pool_server_runtime.go | 13 ++ go/models/inventory_map_pool_servers_entry.go | 16 +++ go/models/inventory_map_response.go | 22 ++++ go/models/inventory_map_vs_config.go | 40 +++++++ .../inventory_map_vs_config_api_response.go | 21 ++++ go/models/inventory_map_vs_entry.go | 28 +++++ go/models/ipam_dns_record_info.go | 16 +++ go/models/ipam_dns_subnet_domain_list.go | 31 +++++ go/models/j_w_t_profile.go | 9 ++ go/models/license_policy.go | 25 ++++ go/models/license_tenant_usage_info.go | 22 ++++ go/models/license_tier_usage_info.go | 31 +++++ ...license_tier_usage_info_pertenant_entry.go | 16 +++ go/models/license_usage_info.go | 31 +++++ go/models/license_usage_info_pertier_entry.go | 16 +++ go/models/license_warning.go | 19 +++ go/models/licensing_action_result.go | 13 ++ go/models/licensing_serial_key_request.go | 16 +++ go/models/management_service.go | 21 ++++ go/models/management_service_access_grant.go | 25 ++++ .../management_service_access_grant_req.go | 25 ++++ go/models/management_service_port.go | 23 ++++ go/models/management_service_req.go | 25 ++++ .../management_service_tls_configuration.go | 16 +++ go/models/match_replace_pair.go | 9 ++ go/models/network_subnet.go | 31 +++++ go/models/network_subnet_api_response.go | 21 ++++ go/models/network_subnet_list.go | 17 +++ go/models/nsx_configuration.go | 9 ++ go/models/object_graph_entry.go | 22 ++++ go/models/object_graph_list.go | 17 +++ go/models/openstack_login.go | 30 +++++ go/models/ops_history.go | 3 + go/models/pool_inventory_server.go | 25 ++++ go/models/pool_inventory_server_config.go | 34 ++++++ go/models/pool_inventory_server_list.go | 20 ++++ go/models/pool_inventory_server_runtime.go | 13 ++ go/models/rediscover_vcenter_param.go | 14 +++ go/models/refresh_session_response.go | 9 ++ go/models/s_e_bandwidth_limit.go | 16 +++ go/models/se_group_resume_params.go | 22 ++++ go/models/se_group_version.go | 22 ++++ go/models/se_version.go | 24 ++++ go/models/single_license.go | 100 ++++++++++++++++ go/models/ssh_se_deployment.go | 9 ++ go/models/subnet_list.go | 28 +++++ go/models/switch_to_tenant_response.go | 13 ++ .../system_configuration_compliance_mode.go | 25 ++++ go/models/system_user_token_checkout.go | 9 ++ go/models/tcp_attacks.go | 9 ++ go/models/udp_attacks.go | 9 ++ go/models/ui_error_ack.go | 9 ++ go/models/upgrade_preview_response.go | 19 +++ go/models/upgrade_response.go | 19 +++ go/models/upgrade_status_info.go | 2 +- go/models/upload_params.go | 59 +++++++++ go/models/upload_params_api_response.go | 21 ++++ go/models/user_preferences.go | 13 ++ go/models/user_tenant_list_response.go | 16 +++ go/models/user_tenant_list_user_info.go | 37 ++++++ go/models/user_token_checkout.go | 9 ++ go/models/user_token_checkout_response.go | 16 +++ go/models/v_i_admin_credentials.go | 26 ++++ go/models/v_i_mgr_vcenter_runtime.go | 104 ++++++++++++++++ .../v_i_mgr_vcenter_runtime_api_response.go | 21 ++++ go/models/v_i_retrieve_p_g_names.go | 25 ++++ go/models/v_i_se_vm_ip_conf_params.go | 38 ++++++ go/models/v_i_set_mgmt_ip_s_e_req.go | 36 ++++++ go/models/vcenter_inventory_diag_req.go | 13 ++ go/models/vcenter_login.go | 25 ++++ go/models/vs_apic_extension.go | 9 ++ go/models/vs_placement_resolution_info.go | 9 ++ go/models/waf_learning.go | 9 ++ go/models/waf_policy_whitelist.go | 9 ++ go/models/waf_policy_whitelist_rule.go | 9 ++ go/models/waf_whitelist_log.go | 9 ++ go/models/workload_selector.go | 17 +++ 206 files changed, 7508 insertions(+), 1 deletion(-) create mode 100644 go/clients/albservicesassetresponse_client.go create mode 100644 go/clients/alertcount_client.go create mode 100644 go/clients/authtokencreateresponse_client.go create mode 100644 go/clients/checkpasswordresponse_client.go create mode 100644 go/clients/cloudlicensesubscriberesult_client.go create mode 100644 go/clients/cluster_client.go create mode 100644 go/clients/configexportbundleinfo_client.go create mode 100644 go/clients/controllerbannerlist_client.go create mode 100644 go/clients/controllerinventoryresponse_client.go create mode 100644 go/clients/controllerlicense_client.go create mode 100644 go/clients/controllerversion_client.go create mode 100644 go/clients/defaultvaluesaugmentation_client.go create mode 100644 go/clients/dnslookupresult_client.go create mode 100644 go/clients/eventlog_client.go create mode 100644 go/clients/fileserviceipamdnsscriptuploadack_client.go create mode 100644 go/clients/fileservicelisting_client.go create mode 100644 go/clients/gslbfileserviceuploadack_client.go create mode 100644 go/clients/gslbsiteops_client.go create mode 100644 go/clients/imageinventory_client.go create mode 100644 go/clients/imagerawinventoryresponse_client.go create mode 100644 go/clients/initialdata_client.go create mode 100644 go/clients/inventorymapresponse_client.go create mode 100644 go/clients/licenseusageinfo_client.go create mode 100644 go/clients/licensingactionresult_client.go create mode 100644 go/clients/licensingserialkeyrequest_client.go create mode 100644 go/clients/networksubnetlist_client.go create mode 100644 go/clients/objectgraphlist_client.go create mode 100644 go/clients/poolinventoryserverlist_client.go create mode 100644 go/clients/refreshsessionresponse_client.go create mode 100644 go/clients/segroupresumeparams_client.go create mode 100644 go/clients/segroupversion_client.go create mode 100644 go/clients/seversion_client.go create mode 100644 go/clients/switchtotenantresponse_client.go create mode 100644 go/clients/systemconfigurationcompliancemode_client.go create mode 100644 go/clients/systemusertokencheckout_client.go create mode 100644 go/clients/uierrorack_client.go create mode 100644 go/clients/userpreferences_client.go create mode 100644 go/clients/usertenantlistresponse_client.go create mode 100644 go/clients/usertokencheckout_client.go create mode 100644 go/clients/vimgrvcenterruntime_client.go create mode 100644 go/models/a_l_b_services_asset_response.go create mode 100644 go/models/a_l_b_services_file_download_metadata.go create mode 100644 go/models/a_w_s_login.go create mode 100644 go/models/alert_count.go create mode 100644 go/models/alert_count_entry.go create mode 100644 go/models/api_c_configuration.go create mode 100644 go/models/apic_agent_bridge_domain_vrf_change.go create mode 100644 go/models/apic_agent_generic_event_details.go create mode 100644 go/models/apic_agent_vs_network_error.go create mode 100644 go/models/app_learning_params.go create mode 100644 go/models/auth_token_create_response.go create mode 100644 go/models/auth_token_create_response_api_response.go create mode 100644 go/models/burst_resource.go create mode 100644 go/models/cc_add_vnics_req.go create mode 100644 go/models/cc_create_se_req.go create mode 100644 go/models/cc_del_vnics_req.go create mode 100644 go/models/cc_delete_se_req.go create mode 100644 go/models/cc_host_info.go create mode 100644 go/models/check_password_response.go create mode 100644 go/models/cloud_license_subscribe_result.go create mode 100644 go/models/cluster.go create mode 100644 go/models/cluster_api_response.go create mode 100644 go/models/cluster_version_info.go create mode 100644 go/models/cluster_warm_reboot_event.go create mode 100644 go/models/clustify_info.go create mode 100644 go/models/config_export_bundle_info.go create mode 100644 go/models/config_pb_attributes.go create mode 100644 go/models/controller_backup_scheduler_fault.go create mode 100644 go/models/controller_banner_entry.go create mode 100644 go/models/controller_banner_list.go create mode 100644 go/models/controller_cluster_fault.go create mode 100644 go/models/controller_deprecated_api_fault.go create mode 100644 go/models/controller_inactive_node.go create mode 100644 go/models/controller_inventory_faults.go create mode 100644 go/models/controller_inventory_response.go create mode 100644 go/models/controller_license.go create mode 100644 go/models/controller_license_api_response.go create mode 100644 go/models/controller_license_fault.go create mode 100644 go/models/controller_migration_fault.go create mode 100644 go/models/controller_ssl_profile_fault.go create mode 100644 go/models/controller_system_limits_fault.go create mode 100644 go/models/controller_version.go create mode 100644 go/models/create_management_service_access_grant_req.go create mode 100644 go/models/create_management_service_req.go create mode 100644 go/models/cred_params.go create mode 100644 go/models/cumulative_license.go create mode 100644 go/models/default_values_augmentation.go create mode 100644 go/models/default_values_augmentation_default_entry.go create mode 100644 go/models/default_values_augmentation_default_refs_entry.go create mode 100644 go/models/default_values_url_list.go create mode 100644 go/models/default_values_uuid_list.go create mode 100644 go/models/dns_domain.go create mode 100644 go/models/dns_lookup_result.go create mode 100644 go/models/dns_rate_profile.go create mode 100644 go/models/error.go create mode 100644 go/models/event_gen_params.go create mode 100644 go/models/federation_checkpoint.go create mode 100644 go/models/file_service_entry.go create mode 100644 go/models/file_service_entry_api_response.go create mode 100644 go/models/file_service_ipam_dns_script_upload_ack.go create mode 100644 go/models/file_service_listing.go create mode 100644 go/models/gslb_dns_geo_update.go create mode 100644 go/models/gslb_dns_se_info.go create mode 100644 go/models/gslb_file_object_runtime.go create mode 100644 go/models/gslb_file_service_upload_ack.go create mode 100644 go/models/gslb_hdr.go create mode 100644 go/models/gslb_site_metadata.go create mode 100644 go/models/gslb_site_ops.go create mode 100644 go/models/gslb_site_ops_api_response.go create mode 100644 go/models/gslb_site_ops_obj.go create mode 100644 go/models/gslb_site_ops_stale_object_status.go create mode 100644 go/models/image_inventory.go create mode 100644 go/models/image_inventory_info.go create mode 100644 go/models/image_inventory_version.go create mode 100644 go/models/image_raw_inventory_entry.go create mode 100644 go/models/image_raw_inventory_response.go create mode 100644 go/models/image_raw_inventory_runtime.go create mode 100644 go/models/in_use_info.go create mode 100644 go/models/infoblox_subnet_range.go create mode 100644 go/models/initial_data.go create mode 100644 go/models/inventory_map_pool.go create mode 100644 go/models/inventory_map_pool_group_member.go create mode 100644 go/models/inventory_map_pool_group_ref.go create mode 100644 go/models/inventory_map_pool_group_ref_api_response.go create mode 100644 go/models/inventory_map_pool_network_servers.go create mode 100644 go/models/inventory_map_pool_networks_entry.go create mode 100644 go/models/inventory_map_pool_server.go create mode 100644 go/models/inventory_map_pool_server_config.go create mode 100644 go/models/inventory_map_pool_server_runtime.go create mode 100644 go/models/inventory_map_pool_servers_entry.go create mode 100644 go/models/inventory_map_response.go create mode 100644 go/models/inventory_map_vs_config.go create mode 100644 go/models/inventory_map_vs_config_api_response.go create mode 100644 go/models/inventory_map_vs_entry.go create mode 100644 go/models/ipam_dns_record_info.go create mode 100644 go/models/ipam_dns_subnet_domain_list.go create mode 100644 go/models/j_w_t_profile.go create mode 100644 go/models/license_policy.go create mode 100644 go/models/license_tenant_usage_info.go create mode 100644 go/models/license_tier_usage_info.go create mode 100644 go/models/license_tier_usage_info_pertenant_entry.go create mode 100644 go/models/license_usage_info.go create mode 100644 go/models/license_usage_info_pertier_entry.go create mode 100644 go/models/license_warning.go create mode 100644 go/models/licensing_action_result.go create mode 100644 go/models/licensing_serial_key_request.go create mode 100644 go/models/management_service.go create mode 100644 go/models/management_service_access_grant.go create mode 100644 go/models/management_service_access_grant_req.go create mode 100644 go/models/management_service_port.go create mode 100644 go/models/management_service_req.go create mode 100644 go/models/management_service_tls_configuration.go create mode 100644 go/models/match_replace_pair.go create mode 100644 go/models/network_subnet.go create mode 100644 go/models/network_subnet_api_response.go create mode 100644 go/models/network_subnet_list.go create mode 100644 go/models/nsx_configuration.go create mode 100644 go/models/object_graph_entry.go create mode 100644 go/models/object_graph_list.go create mode 100644 go/models/openstack_login.go create mode 100644 go/models/pool_inventory_server.go create mode 100644 go/models/pool_inventory_server_config.go create mode 100644 go/models/pool_inventory_server_list.go create mode 100644 go/models/pool_inventory_server_runtime.go create mode 100644 go/models/rediscover_vcenter_param.go create mode 100644 go/models/refresh_session_response.go create mode 100644 go/models/s_e_bandwidth_limit.go create mode 100644 go/models/se_group_resume_params.go create mode 100644 go/models/se_group_version.go create mode 100644 go/models/se_version.go create mode 100644 go/models/single_license.go create mode 100644 go/models/ssh_se_deployment.go create mode 100644 go/models/subnet_list.go create mode 100644 go/models/switch_to_tenant_response.go create mode 100644 go/models/system_configuration_compliance_mode.go create mode 100644 go/models/system_user_token_checkout.go create mode 100644 go/models/tcp_attacks.go create mode 100644 go/models/udp_attacks.go create mode 100644 go/models/ui_error_ack.go create mode 100644 go/models/upgrade_preview_response.go create mode 100644 go/models/upgrade_response.go create mode 100644 go/models/upload_params.go create mode 100644 go/models/upload_params_api_response.go create mode 100644 go/models/user_preferences.go create mode 100644 go/models/user_tenant_list_response.go create mode 100644 go/models/user_tenant_list_user_info.go create mode 100644 go/models/user_token_checkout.go create mode 100644 go/models/user_token_checkout_response.go create mode 100644 go/models/v_i_admin_credentials.go create mode 100644 go/models/v_i_mgr_vcenter_runtime.go create mode 100644 go/models/v_i_mgr_vcenter_runtime_api_response.go create mode 100644 go/models/v_i_retrieve_p_g_names.go create mode 100644 go/models/v_i_se_vm_ip_conf_params.go create mode 100644 go/models/v_i_set_mgmt_ip_s_e_req.go create mode 100644 go/models/vcenter_inventory_diag_req.go create mode 100644 go/models/vcenter_login.go create mode 100644 go/models/vs_apic_extension.go create mode 100644 go/models/vs_placement_resolution_info.go create mode 100644 go/models/waf_learning.go create mode 100644 go/models/waf_policy_whitelist.go create mode 100644 go/models/waf_policy_whitelist_rule.go create mode 100644 go/models/waf_whitelist_log.go create mode 100644 go/models/workload_selector.go diff --git a/go/clients/albservicesassetresponse_client.go b/go/clients/albservicesassetresponse_client.go new file mode 100644 index 0000000000..93f06ecd05 --- /dev/null +++ b/go/clients/albservicesassetresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ALBServicesAssetResponseClient is a client for avi ALBServicesAssetResponse resource +type ALBServicesAssetResponseClient struct { + aviSession *session.AviSession +} + +// NewALBServicesAssetResponseClient creates a new client for ALBServicesAssetResponse resource +func NewALBServicesAssetResponseClient(aviSession *session.AviSession) *ALBServicesAssetResponseClient { + return &ALBServicesAssetResponseClient{aviSession: aviSession} +} + +func (client *ALBServicesAssetResponseClient) getAPIPath(uuid string) string { + path := "api/albservicesassetresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ALBServicesAssetResponse objects +func (client *ALBServicesAssetResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ALBServicesAssetResponse, error) { + var plist []*models.ALBServicesAssetResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ALBServicesAssetResponse by uuid +func (client *ALBServicesAssetResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ALBServicesAssetResponse, error) { + var obj *models.ALBServicesAssetResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ALBServicesAssetResponse by name +func (client *ALBServicesAssetResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ALBServicesAssetResponse, error) { + var obj *models.ALBServicesAssetResponse + err := client.aviSession.GetObjectByName("albservicesassetresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ALBServicesAssetResponse by filters like name, cloud, tenant +// Api creates ALBServicesAssetResponse object with every call. +func (client *ALBServicesAssetResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.ALBServicesAssetResponse, error) { + var obj *models.ALBServicesAssetResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("albservicesassetresponse", newOptions...) + return obj, err +} + +// Create a new ALBServicesAssetResponse object +func (client *ALBServicesAssetResponseClient) Create(obj *models.ALBServicesAssetResponse, options ...session.ApiOptionsParams) (*models.ALBServicesAssetResponse, error) { + var robj *models.ALBServicesAssetResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ALBServicesAssetResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ALBServicesAssetResponse +// or it should be json compatible of form map[string]interface{} +func (client *ALBServicesAssetResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ALBServicesAssetResponse, error) { + var robj *models.ALBServicesAssetResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ALBServicesAssetResponse object with a given UUID +func (client *ALBServicesAssetResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ALBServicesAssetResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/alertcount_client.go b/go/clients/alertcount_client.go new file mode 100644 index 0000000000..db381fc67b --- /dev/null +++ b/go/clients/alertcount_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// AlertCountClient is a client for avi AlertCount resource +type AlertCountClient struct { + aviSession *session.AviSession +} + +// NewAlertCountClient creates a new client for AlertCount resource +func NewAlertCountClient(aviSession *session.AviSession) *AlertCountClient { + return &AlertCountClient{aviSession: aviSession} +} + +func (client *AlertCountClient) getAPIPath(uuid string) string { + path := "api/alertcount" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of AlertCount objects +func (client *AlertCountClient) GetAll(options ...session.ApiOptionsParams) ([]*models.AlertCount, error) { + var plist []*models.AlertCount + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing AlertCount by uuid +func (client *AlertCountClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.AlertCount, error) { + var obj *models.AlertCount + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing AlertCount by name +func (client *AlertCountClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.AlertCount, error) { + var obj *models.AlertCount + err := client.aviSession.GetObjectByName("alertcount", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing AlertCount by filters like name, cloud, tenant +// Api creates AlertCount object with every call. +func (client *AlertCountClient) GetObject(options ...session.ApiOptionsParams) (*models.AlertCount, error) { + var obj *models.AlertCount + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("alertcount", newOptions...) + return obj, err +} + +// Create a new AlertCount object +func (client *AlertCountClient) Create(obj *models.AlertCount, options ...session.ApiOptionsParams) (*models.AlertCount, error) { + var robj *models.AlertCount + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing AlertCount object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.AlertCount +// or it should be json compatible of form map[string]interface{} +func (client *AlertCountClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.AlertCount, error) { + var robj *models.AlertCount + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing AlertCount object with a given UUID +func (client *AlertCountClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *AlertCountClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/authtokencreateresponse_client.go b/go/clients/authtokencreateresponse_client.go new file mode 100644 index 0000000000..015bf40789 --- /dev/null +++ b/go/clients/authtokencreateresponse_client.go @@ -0,0 +1,112 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// AuthTokenCreateResponseClient is a client for avi AuthTokenCreateResponse resource +type AuthTokenCreateResponseClient struct { + aviSession *session.AviSession +} + +// NewAuthTokenCreateResponseClient creates a new client for AuthTokenCreateResponse resource +func NewAuthTokenCreateResponseClient(aviSession *session.AviSession) *AuthTokenCreateResponseClient { + return &AuthTokenCreateResponseClient{aviSession: aviSession} +} + +func (client *AuthTokenCreateResponseClient) getAPIPath(uuid string) string { + path := "api/authtokencreateresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of AuthTokenCreateResponse objects +func (client *AuthTokenCreateResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.AuthTokenCreateResponse, error) { + var plist []*models.AuthTokenCreateResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing AuthTokenCreateResponse by uuid +func (client *AuthTokenCreateResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var obj *models.AuthTokenCreateResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing AuthTokenCreateResponse by name +func (client *AuthTokenCreateResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var obj *models.AuthTokenCreateResponse + err := client.aviSession.GetObjectByName("authtokencreateresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing AuthTokenCreateResponse by filters like name, cloud, tenant +// Api creates AuthTokenCreateResponse object with every call. +func (client *AuthTokenCreateResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var obj *models.AuthTokenCreateResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("authtokencreateresponse", newOptions...) + return obj, err +} + +// Create a new AuthTokenCreateResponse object +func (client *AuthTokenCreateResponseClient) Create(obj *models.AuthTokenCreateResponse, options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var robj *models.AuthTokenCreateResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Update an existing AuthTokenCreateResponse object +func (client *AuthTokenCreateResponseClient) Update(obj *models.AuthTokenCreateResponse, options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var robj *models.AuthTokenCreateResponse + path := client.getAPIPath(*obj.UUID) + err := client.aviSession.Put(path, obj, &robj, options...) + return robj, err +} + +// Patch an existing AuthTokenCreateResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.AuthTokenCreateResponse +// or it should be json compatible of form map[string]interface{} +func (client *AuthTokenCreateResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.AuthTokenCreateResponse, error) { + var robj *models.AuthTokenCreateResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing AuthTokenCreateResponse object with a given UUID +func (client *AuthTokenCreateResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// DeleteByName - Delete an existing AuthTokenCreateResponse object with a given name +func (client *AuthTokenCreateResponseClient) DeleteByName(name string, options ...session.ApiOptionsParams) error { + res, err := client.GetByName(name, options...) + if err != nil { + return err + } + return client.Delete(*res.UUID, options...) +} + +// GetAviSession +func (client *AuthTokenCreateResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/avi_client.go b/go/clients/avi_client.go index cb5d1ee1b4..d8c5057be3 100644 --- a/go/clients/avi_client.go +++ b/go/clients/avi_client.go @@ -10,6 +10,7 @@ import ( // AviClient -- an API Client for Avi Controller type AviClient struct { AviSession *session.AviSession + ALBServicesAssetResponse *ALBServicesAssetResponseClient ALBServicesConfig *ALBServicesConfigClient ALBServicesFileDownload *ALBServicesFileDownloadClient ALBServicesFileUpload *ALBServicesFileUploadClient @@ -26,6 +27,7 @@ type AviClient struct { AkoAmkoCluster *AkoAmkoClusterClient Alert *AlertClient AlertConfig *AlertConfigClient + AlertCount *AlertCountClient AlertEmailConfig *AlertEmailConfigClient AlertObjectList *AlertObjectListClient AlertScriptConfig *AlertScriptConfigClient @@ -37,6 +39,7 @@ type AviClient struct { ApplicationProfile *ApplicationProfileClient AuthMappingProfile *AuthMappingProfileClient AuthProfile *AuthProfileClient + AuthTokenCreateResponse *AuthTokenCreateResponseClient AutoScaleLaunchConfig *AutoScaleLaunchConfigClient AvailabilityZone *AvailabilityZoneClient Backup *BackupClient @@ -48,34 +51,49 @@ type AviClient struct { CSRFPolicy *CSRFPolicyClient CertJwtStore *CertJwtStoreClient CertificateManagementProfile *CertificateManagementProfileClient + CheckPasswordResponse *CheckPasswordResponseClient Cloud *CloudClient CloudConnectorUser *CloudConnectorUserClient CloudInventory *CloudInventoryClient + CloudLicenseSubscribeResult *CloudLicenseSubscribeResultClient CloudProperties *CloudPropertiesClient CloudRuntime *CloudRuntimeClient + Cluster *ClusterClient ClusterCloudDetails *ClusterCloudDetailsClient + ConfigExportBundleInfo *ConfigExportBundleInfoClient + ControllerBannerList *ControllerBannerListClient + ControllerInventoryResponse *ControllerInventoryResponseClient + ControllerLicense *ControllerLicenseClient ControllerPortalRegistration *ControllerPortalRegistrationClient ControllerProperties *ControllerPropertiesClient ControllerSite *ControllerSiteClient + ControllerVersion *ControllerVersionClient CustomIPAMDNSProfile *CustomIPAMDNSProfileClient + DNSLookupResult *DNSLookupResultClient DNSPolicy *DNSPolicyClient DebugController *DebugControllerClient DebugServiceEngine *DebugServiceEngineClient DebugVirtualService *DebugVirtualServiceClient + DefaultValuesAugmentation *DefaultValuesAugmentationClient DynamicDNSRecord *DynamicDNSRecordClient ErrorPageBody *ErrorPageBodyClient ErrorPageProfile *ErrorPageProfileClient + EventLog *EventLogClient FileObject *FileObjectClient + FileServiceIPAMDNSScriptUploadAck *FileServiceIPAMDNSScriptUploadAckClient + FileServiceListing *FileServiceListingClient Generic *GenericClient GeoDB *GeoDBClient Gslb *GslbClient GslbCRMRuntime *GslbCRMRuntimeClient + GslbFileServiceUploadAck *GslbFileServiceUploadAckClient GslbGeoDbProfile *GslbGeoDbProfileClient GslbHSMRuntime *GslbHSMRuntimeClient GslbInventory *GslbInventoryClient GslbSMRuntime *GslbSMRuntimeClient GslbService *GslbServiceClient GslbServiceInventory *GslbServiceInventoryClient + GslbSiteOps *GslbSiteOpsClient HTTPPolicySet *HTTPPolicySetClient HardwareSecurityModuleGroup *HardwareSecurityModuleGroupClient HealthMonitor *HealthMonitorClient @@ -84,7 +102,11 @@ type AviClient struct { IPReputationDB *IPReputationDBClient IcapProfile *IcapProfileClient Image *ImageClient + ImageInventory *ImageInventoryClient + ImageRawInventoryResponse *ImageRawInventoryResponseClient + InitialData *InitialDataClient InventoryFaultConfig *InventoryFaultConfigClient + InventoryMapResponse *InventoryMapResponseClient JWTServerProfile *JWTServerProfileClient JobEntry *JobEntryClient L4PolicySet *L4PolicySetClient @@ -92,6 +114,9 @@ type AviClient struct { LabelProfile *LabelProfileClient LicenseLedgerDetails *LicenseLedgerDetailsClient LicenseStatus *LicenseStatusClient + LicenseUsageInfo *LicenseUsageInfoClient + LicensingActionResult *LicensingActionResultClient + LicensingSerialKeyRequest *LicensingSerialKeyRequestClient LocalWorkerFdsVersion *LocalWorkerFdsVersionClient LogControllerMapping *LogControllerMappingClient MemoryBalancerRequest *MemoryBalancerRequestClient @@ -104,7 +129,9 @@ type AviClient struct { NetworkRuntime *NetworkRuntimeClient NetworkSecurityPolicy *NetworkSecurityPolicyClient NetworkService *NetworkServiceClient + NetworkSubnetList *NetworkSubnetListClient NsxtSegmentRuntime *NsxtSegmentRuntimeClient + ObjectGraphList *ObjectGraphListClient PKIProfile *PKIProfileClient PatchControllerParams *PatchControllerParamsClient PatchSeGroupParams *PatchSeGroupParamsClient @@ -114,10 +141,12 @@ type AviClient struct { PoolGroupDeploymentPolicy *PoolGroupDeploymentPolicyClient PoolGroupInventory *PoolGroupInventoryClient PoolInventory *PoolInventoryClient + PoolInventoryServerList *PoolInventoryServerListClient PositiveSecurityPolicy *PositiveSecurityPolicyClient PriorityLabels *PriorityLabelsClient ProtocolParser *ProtocolParserClient RateLimitConfiguration *RateLimitConfigurationClient + RefreshSessionResponse *RefreshSessionResponseClient Report *ReportClient ReportProfile *ReportProfileClient RestoreParams *RestoreParamsClient @@ -136,7 +165,10 @@ type AviClient struct { SSLProfile *SSLProfileClient SSOPolicy *SSOPolicyClient Scheduler *SchedulerClient + SeGroupResumeParams *SeGroupResumeParamsClient + SeGroupVersion *SeGroupVersionClient SeProperties *SePropertiesClient + SeVersion *SeVersionClient SecureChannelAvailableLocalIPs *SecureChannelAvailableLocalIPsClient SecureChannelMapping *SecureChannelMappingClient SecureChannelToken *SecureChannelTokenClient @@ -155,9 +187,12 @@ type AviClient struct { StatediffOperation *StatediffOperationClient StatediffSnapshot *StatediffSnapshotClient StringGroup *StringGroupClient + SwitchToTenantResponse *SwitchToTenantResponseClient SystemConfiguration *SystemConfigurationClient + SystemConfigurationComplianceMode *SystemConfigurationComplianceModeClient SystemLimits *SystemLimitsClient SystemReport *SystemReportClient + SystemUserTokenCheckout *SystemUserTokenCheckoutClient TaskJournal *TaskJournalClient TechSupport *TechSupportClient TechSupportMessage *TechSupportMessageClient @@ -170,6 +205,7 @@ type AviClient struct { TestSeDatastoreLevel3 *TestSeDatastoreLevel3Client TrafficCloneProfile *TrafficCloneProfileClient TrustedHostProfile *TrustedHostProfileClient + UIErrorAck *UIErrorAckClient UpgradeControllerParams *UpgradeControllerParamsClient UpgradeProfile *UpgradeProfileClient UpgradeSeGroupParams *UpgradeSeGroupParamsClient @@ -179,6 +215,9 @@ type AviClient struct { User *UserClient UserAccountProfile *UserAccountProfileClient UserActivity *UserActivityClient + UserPreferences *UserPreferencesClient + UserTenantListResponse *UserTenantListResponseClient + UserTokenCheckout *UserTokenCheckoutClient VCenterServer *VCenterServerClient VIDCInfo *VIDCInfoClient VIMgrClusterRuntime *VIMgrClusterRuntimeClient @@ -186,6 +225,7 @@ type AviClient struct { VIMgrNWRuntime *VIMgrNWRuntimeClient VIMgrSEVMRuntime *VIMgrSEVMRuntimeClient VIMgrVMRuntime *VIMgrVMRuntimeClient + VIMgrVcenterRuntime *VIMgrVcenterRuntimeClient VIPGNameInfo *VIPGNameInfoClient VSDataScriptSet *VSDataScriptSetClient VirtualService *VirtualServiceClient @@ -212,6 +252,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess return &aviClient, err } aviClient.AviSession = aviSession + aviClient.ALBServicesAssetResponse = NewALBServicesAssetResponseClient(aviSession) aviClient.ALBServicesConfig = NewALBServicesConfigClient(aviSession) aviClient.ALBServicesFileDownload = NewALBServicesFileDownloadClient(aviSession) aviClient.ALBServicesFileUpload = NewALBServicesFileUploadClient(aviSession) @@ -228,6 +269,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.AkoAmkoCluster = NewAkoAmkoClusterClient(aviSession) aviClient.Alert = NewAlertClient(aviSession) aviClient.AlertConfig = NewAlertConfigClient(aviSession) + aviClient.AlertCount = NewAlertCountClient(aviSession) aviClient.AlertEmailConfig = NewAlertEmailConfigClient(aviSession) aviClient.AlertObjectList = NewAlertObjectListClient(aviSession) aviClient.AlertScriptConfig = NewAlertScriptConfigClient(aviSession) @@ -239,6 +281,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.ApplicationProfile = NewApplicationProfileClient(aviSession) aviClient.AuthMappingProfile = NewAuthMappingProfileClient(aviSession) aviClient.AuthProfile = NewAuthProfileClient(aviSession) + aviClient.AuthTokenCreateResponse = NewAuthTokenCreateResponseClient(aviSession) aviClient.AutoScaleLaunchConfig = NewAutoScaleLaunchConfigClient(aviSession) aviClient.AvailabilityZone = NewAvailabilityZoneClient(aviSession) aviClient.Backup = NewBackupClient(aviSession) @@ -250,34 +293,49 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.CSRFPolicy = NewCSRFPolicyClient(aviSession) aviClient.CertJwtStore = NewCertJwtStoreClient(aviSession) aviClient.CertificateManagementProfile = NewCertificateManagementProfileClient(aviSession) + aviClient.CheckPasswordResponse = NewCheckPasswordResponseClient(aviSession) aviClient.Cloud = NewCloudClient(aviSession) aviClient.CloudConnectorUser = NewCloudConnectorUserClient(aviSession) aviClient.CloudInventory = NewCloudInventoryClient(aviSession) + aviClient.CloudLicenseSubscribeResult = NewCloudLicenseSubscribeResultClient(aviSession) aviClient.CloudProperties = NewCloudPropertiesClient(aviSession) aviClient.CloudRuntime = NewCloudRuntimeClient(aviSession) + aviClient.Cluster = NewClusterClient(aviSession) aviClient.ClusterCloudDetails = NewClusterCloudDetailsClient(aviSession) + aviClient.ConfigExportBundleInfo = NewConfigExportBundleInfoClient(aviSession) + aviClient.ControllerBannerList = NewControllerBannerListClient(aviSession) + aviClient.ControllerInventoryResponse = NewControllerInventoryResponseClient(aviSession) + aviClient.ControllerLicense = NewControllerLicenseClient(aviSession) aviClient.ControllerPortalRegistration = NewControllerPortalRegistrationClient(aviSession) aviClient.ControllerProperties = NewControllerPropertiesClient(aviSession) aviClient.ControllerSite = NewControllerSiteClient(aviSession) + aviClient.ControllerVersion = NewControllerVersionClient(aviSession) aviClient.CustomIPAMDNSProfile = NewCustomIPAMDNSProfileClient(aviSession) + aviClient.DNSLookupResult = NewDNSLookupResultClient(aviSession) aviClient.DNSPolicy = NewDNSPolicyClient(aviSession) aviClient.DebugController = NewDebugControllerClient(aviSession) aviClient.DebugServiceEngine = NewDebugServiceEngineClient(aviSession) aviClient.DebugVirtualService = NewDebugVirtualServiceClient(aviSession) + aviClient.DefaultValuesAugmentation = NewDefaultValuesAugmentationClient(aviSession) aviClient.DynamicDNSRecord = NewDynamicDNSRecordClient(aviSession) aviClient.ErrorPageBody = NewErrorPageBodyClient(aviSession) aviClient.ErrorPageProfile = NewErrorPageProfileClient(aviSession) + aviClient.EventLog = NewEventLogClient(aviSession) aviClient.FileObject = NewFileObjectClient(aviSession) + aviClient.FileServiceIPAMDNSScriptUploadAck = NewFileServiceIPAMDNSScriptUploadAckClient(aviSession) + aviClient.FileServiceListing = NewFileServiceListingClient(aviSession) aviClient.Generic = NewGenericClient(aviSession) aviClient.GeoDB = NewGeoDBClient(aviSession) aviClient.Gslb = NewGslbClient(aviSession) aviClient.GslbCRMRuntime = NewGslbCRMRuntimeClient(aviSession) + aviClient.GslbFileServiceUploadAck = NewGslbFileServiceUploadAckClient(aviSession) aviClient.GslbGeoDbProfile = NewGslbGeoDbProfileClient(aviSession) aviClient.GslbHSMRuntime = NewGslbHSMRuntimeClient(aviSession) aviClient.GslbInventory = NewGslbInventoryClient(aviSession) aviClient.GslbSMRuntime = NewGslbSMRuntimeClient(aviSession) aviClient.GslbService = NewGslbServiceClient(aviSession) aviClient.GslbServiceInventory = NewGslbServiceInventoryClient(aviSession) + aviClient.GslbSiteOps = NewGslbSiteOpsClient(aviSession) aviClient.HTTPPolicySet = NewHTTPPolicySetClient(aviSession) aviClient.HardwareSecurityModuleGroup = NewHardwareSecurityModuleGroupClient(aviSession) aviClient.HealthMonitor = NewHealthMonitorClient(aviSession) @@ -286,7 +344,11 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.IPReputationDB = NewIPReputationDBClient(aviSession) aviClient.IcapProfile = NewIcapProfileClient(aviSession) aviClient.Image = NewImageClient(aviSession) + aviClient.ImageInventory = NewImageInventoryClient(aviSession) + aviClient.ImageRawInventoryResponse = NewImageRawInventoryResponseClient(aviSession) + aviClient.InitialData = NewInitialDataClient(aviSession) aviClient.InventoryFaultConfig = NewInventoryFaultConfigClient(aviSession) + aviClient.InventoryMapResponse = NewInventoryMapResponseClient(aviSession) aviClient.JWTServerProfile = NewJWTServerProfileClient(aviSession) aviClient.JobEntry = NewJobEntryClient(aviSession) aviClient.L4PolicySet = NewL4PolicySetClient(aviSession) @@ -294,6 +356,9 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.LabelProfile = NewLabelProfileClient(aviSession) aviClient.LicenseLedgerDetails = NewLicenseLedgerDetailsClient(aviSession) aviClient.LicenseStatus = NewLicenseStatusClient(aviSession) + aviClient.LicenseUsageInfo = NewLicenseUsageInfoClient(aviSession) + aviClient.LicensingActionResult = NewLicensingActionResultClient(aviSession) + aviClient.LicensingSerialKeyRequest = NewLicensingSerialKeyRequestClient(aviSession) aviClient.LocalWorkerFdsVersion = NewLocalWorkerFdsVersionClient(aviSession) aviClient.LogControllerMapping = NewLogControllerMappingClient(aviSession) aviClient.MemoryBalancerRequest = NewMemoryBalancerRequestClient(aviSession) @@ -306,7 +371,9 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.NetworkRuntime = NewNetworkRuntimeClient(aviSession) aviClient.NetworkSecurityPolicy = NewNetworkSecurityPolicyClient(aviSession) aviClient.NetworkService = NewNetworkServiceClient(aviSession) + aviClient.NetworkSubnetList = NewNetworkSubnetListClient(aviSession) aviClient.NsxtSegmentRuntime = NewNsxtSegmentRuntimeClient(aviSession) + aviClient.ObjectGraphList = NewObjectGraphListClient(aviSession) aviClient.PKIProfile = NewPKIProfileClient(aviSession) aviClient.PatchControllerParams = NewPatchControllerParamsClient(aviSession) aviClient.PatchSeGroupParams = NewPatchSeGroupParamsClient(aviSession) @@ -316,10 +383,12 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.PoolGroupDeploymentPolicy = NewPoolGroupDeploymentPolicyClient(aviSession) aviClient.PoolGroupInventory = NewPoolGroupInventoryClient(aviSession) aviClient.PoolInventory = NewPoolInventoryClient(aviSession) + aviClient.PoolInventoryServerList = NewPoolInventoryServerListClient(aviSession) aviClient.PositiveSecurityPolicy = NewPositiveSecurityPolicyClient(aviSession) aviClient.PriorityLabels = NewPriorityLabelsClient(aviSession) aviClient.ProtocolParser = NewProtocolParserClient(aviSession) aviClient.RateLimitConfiguration = NewRateLimitConfigurationClient(aviSession) + aviClient.RefreshSessionResponse = NewRefreshSessionResponseClient(aviSession) aviClient.Report = NewReportClient(aviSession) aviClient.ReportProfile = NewReportProfileClient(aviSession) aviClient.RestoreParams = NewRestoreParamsClient(aviSession) @@ -338,7 +407,10 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.SSLProfile = NewSSLProfileClient(aviSession) aviClient.SSOPolicy = NewSSOPolicyClient(aviSession) aviClient.Scheduler = NewSchedulerClient(aviSession) + aviClient.SeGroupResumeParams = NewSeGroupResumeParamsClient(aviSession) + aviClient.SeGroupVersion = NewSeGroupVersionClient(aviSession) aviClient.SeProperties = NewSePropertiesClient(aviSession) + aviClient.SeVersion = NewSeVersionClient(aviSession) aviClient.SecureChannelAvailableLocalIPs = NewSecureChannelAvailableLocalIPsClient(aviSession) aviClient.SecureChannelMapping = NewSecureChannelMappingClient(aviSession) aviClient.SecureChannelToken = NewSecureChannelTokenClient(aviSession) @@ -357,9 +429,12 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.StatediffOperation = NewStatediffOperationClient(aviSession) aviClient.StatediffSnapshot = NewStatediffSnapshotClient(aviSession) aviClient.StringGroup = NewStringGroupClient(aviSession) + aviClient.SwitchToTenantResponse = NewSwitchToTenantResponseClient(aviSession) aviClient.SystemConfiguration = NewSystemConfigurationClient(aviSession) + aviClient.SystemConfigurationComplianceMode = NewSystemConfigurationComplianceModeClient(aviSession) aviClient.SystemLimits = NewSystemLimitsClient(aviSession) aviClient.SystemReport = NewSystemReportClient(aviSession) + aviClient.SystemUserTokenCheckout = NewSystemUserTokenCheckoutClient(aviSession) aviClient.TaskJournal = NewTaskJournalClient(aviSession) aviClient.TechSupport = NewTechSupportClient(aviSession) aviClient.TechSupportMessage = NewTechSupportMessageClient(aviSession) @@ -372,6 +447,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.TestSeDatastoreLevel3 = NewTestSeDatastoreLevel3Client(aviSession) aviClient.TrafficCloneProfile = NewTrafficCloneProfileClient(aviSession) aviClient.TrustedHostProfile = NewTrustedHostProfileClient(aviSession) + aviClient.UIErrorAck = NewUIErrorAckClient(aviSession) aviClient.UpgradeControllerParams = NewUpgradeControllerParamsClient(aviSession) aviClient.UpgradeProfile = NewUpgradeProfileClient(aviSession) aviClient.UpgradeSeGroupParams = NewUpgradeSeGroupParamsClient(aviSession) @@ -381,6 +457,9 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.User = NewUserClient(aviSession) aviClient.UserAccountProfile = NewUserAccountProfileClient(aviSession) aviClient.UserActivity = NewUserActivityClient(aviSession) + aviClient.UserPreferences = NewUserPreferencesClient(aviSession) + aviClient.UserTenantListResponse = NewUserTenantListResponseClient(aviSession) + aviClient.UserTokenCheckout = NewUserTokenCheckoutClient(aviSession) aviClient.VCenterServer = NewVCenterServerClient(aviSession) aviClient.VIDCInfo = NewVIDCInfoClient(aviSession) aviClient.VIMgrClusterRuntime = NewVIMgrClusterRuntimeClient(aviSession) @@ -388,6 +467,7 @@ func NewAviClient(host string, username string, options ...func(*session.AviSess aviClient.VIMgrNWRuntime = NewVIMgrNWRuntimeClient(aviSession) aviClient.VIMgrSEVMRuntime = NewVIMgrSEVMRuntimeClient(aviSession) aviClient.VIMgrVMRuntime = NewVIMgrVMRuntimeClient(aviSession) + aviClient.VIMgrVcenterRuntime = NewVIMgrVcenterRuntimeClient(aviSession) aviClient.VIPGNameInfo = NewVIPGNameInfoClient(aviSession) aviClient.VSDataScriptSet = NewVSDataScriptSetClient(aviSession) aviClient.VirtualService = NewVirtualServiceClient(aviSession) diff --git a/go/clients/checkpasswordresponse_client.go b/go/clients/checkpasswordresponse_client.go new file mode 100644 index 0000000000..3986a89ba4 --- /dev/null +++ b/go/clients/checkpasswordresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// CheckPasswordResponseClient is a client for avi CheckPasswordResponse resource +type CheckPasswordResponseClient struct { + aviSession *session.AviSession +} + +// NewCheckPasswordResponseClient creates a new client for CheckPasswordResponse resource +func NewCheckPasswordResponseClient(aviSession *session.AviSession) *CheckPasswordResponseClient { + return &CheckPasswordResponseClient{aviSession: aviSession} +} + +func (client *CheckPasswordResponseClient) getAPIPath(uuid string) string { + path := "api/checkpasswordresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of CheckPasswordResponse objects +func (client *CheckPasswordResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.CheckPasswordResponse, error) { + var plist []*models.CheckPasswordResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing CheckPasswordResponse by uuid +func (client *CheckPasswordResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.CheckPasswordResponse, error) { + var obj *models.CheckPasswordResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing CheckPasswordResponse by name +func (client *CheckPasswordResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.CheckPasswordResponse, error) { + var obj *models.CheckPasswordResponse + err := client.aviSession.GetObjectByName("checkpasswordresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing CheckPasswordResponse by filters like name, cloud, tenant +// Api creates CheckPasswordResponse object with every call. +func (client *CheckPasswordResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.CheckPasswordResponse, error) { + var obj *models.CheckPasswordResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("checkpasswordresponse", newOptions...) + return obj, err +} + +// Create a new CheckPasswordResponse object +func (client *CheckPasswordResponseClient) Create(obj *models.CheckPasswordResponse, options ...session.ApiOptionsParams) (*models.CheckPasswordResponse, error) { + var robj *models.CheckPasswordResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing CheckPasswordResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.CheckPasswordResponse +// or it should be json compatible of form map[string]interface{} +func (client *CheckPasswordResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.CheckPasswordResponse, error) { + var robj *models.CheckPasswordResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing CheckPasswordResponse object with a given UUID +func (client *CheckPasswordResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *CheckPasswordResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/cloudlicensesubscriberesult_client.go b/go/clients/cloudlicensesubscriberesult_client.go new file mode 100644 index 0000000000..bee70b472b --- /dev/null +++ b/go/clients/cloudlicensesubscriberesult_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// CloudLicenseSubscribeResultClient is a client for avi CloudLicenseSubscribeResult resource +type CloudLicenseSubscribeResultClient struct { + aviSession *session.AviSession +} + +// NewCloudLicenseSubscribeResultClient creates a new client for CloudLicenseSubscribeResult resource +func NewCloudLicenseSubscribeResultClient(aviSession *session.AviSession) *CloudLicenseSubscribeResultClient { + return &CloudLicenseSubscribeResultClient{aviSession: aviSession} +} + +func (client *CloudLicenseSubscribeResultClient) getAPIPath(uuid string) string { + path := "api/cloudlicensesubscriberesult" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of CloudLicenseSubscribeResult objects +func (client *CloudLicenseSubscribeResultClient) GetAll(options ...session.ApiOptionsParams) ([]*models.CloudLicenseSubscribeResult, error) { + var plist []*models.CloudLicenseSubscribeResult + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing CloudLicenseSubscribeResult by uuid +func (client *CloudLicenseSubscribeResultClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.CloudLicenseSubscribeResult, error) { + var obj *models.CloudLicenseSubscribeResult + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing CloudLicenseSubscribeResult by name +func (client *CloudLicenseSubscribeResultClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.CloudLicenseSubscribeResult, error) { + var obj *models.CloudLicenseSubscribeResult + err := client.aviSession.GetObjectByName("cloudlicensesubscriberesult", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing CloudLicenseSubscribeResult by filters like name, cloud, tenant +// Api creates CloudLicenseSubscribeResult object with every call. +func (client *CloudLicenseSubscribeResultClient) GetObject(options ...session.ApiOptionsParams) (*models.CloudLicenseSubscribeResult, error) { + var obj *models.CloudLicenseSubscribeResult + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("cloudlicensesubscriberesult", newOptions...) + return obj, err +} + +// Create a new CloudLicenseSubscribeResult object +func (client *CloudLicenseSubscribeResultClient) Create(obj *models.CloudLicenseSubscribeResult, options ...session.ApiOptionsParams) (*models.CloudLicenseSubscribeResult, error) { + var robj *models.CloudLicenseSubscribeResult + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing CloudLicenseSubscribeResult object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.CloudLicenseSubscribeResult +// or it should be json compatible of form map[string]interface{} +func (client *CloudLicenseSubscribeResultClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.CloudLicenseSubscribeResult, error) { + var robj *models.CloudLicenseSubscribeResult + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing CloudLicenseSubscribeResult object with a given UUID +func (client *CloudLicenseSubscribeResultClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *CloudLicenseSubscribeResultClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/cluster_client.go b/go/clients/cluster_client.go new file mode 100644 index 0000000000..c2ba4c69cc --- /dev/null +++ b/go/clients/cluster_client.go @@ -0,0 +1,112 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ClusterClient is a client for avi Cluster resource +type ClusterClient struct { + aviSession *session.AviSession +} + +// NewClusterClient creates a new client for Cluster resource +func NewClusterClient(aviSession *session.AviSession) *ClusterClient { + return &ClusterClient{aviSession: aviSession} +} + +func (client *ClusterClient) getAPIPath(uuid string) string { + path := "api/cluster" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of Cluster objects +func (client *ClusterClient) GetAll(options ...session.ApiOptionsParams) ([]*models.Cluster, error) { + var plist []*models.Cluster + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing Cluster by uuid +func (client *ClusterClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.Cluster, error) { + var obj *models.Cluster + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing Cluster by name +func (client *ClusterClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.Cluster, error) { + var obj *models.Cluster + err := client.aviSession.GetObjectByName("cluster", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing Cluster by filters like name, cloud, tenant +// Api creates Cluster object with every call. +func (client *ClusterClient) GetObject(options ...session.ApiOptionsParams) (*models.Cluster, error) { + var obj *models.Cluster + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("cluster", newOptions...) + return obj, err +} + +// Create a new Cluster object +func (client *ClusterClient) Create(obj *models.Cluster, options ...session.ApiOptionsParams) (*models.Cluster, error) { + var robj *models.Cluster + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Update an existing Cluster object +func (client *ClusterClient) Update(obj *models.Cluster, options ...session.ApiOptionsParams) (*models.Cluster, error) { + var robj *models.Cluster + path := client.getAPIPath(*obj.UUID) + err := client.aviSession.Put(path, obj, &robj, options...) + return robj, err +} + +// Patch an existing Cluster object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.Cluster +// or it should be json compatible of form map[string]interface{} +func (client *ClusterClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.Cluster, error) { + var robj *models.Cluster + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing Cluster object with a given UUID +func (client *ClusterClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// DeleteByName - Delete an existing Cluster object with a given name +func (client *ClusterClient) DeleteByName(name string, options ...session.ApiOptionsParams) error { + res, err := client.GetByName(name, options...) + if err != nil { + return err + } + return client.Delete(*res.UUID, options...) +} + +// GetAviSession +func (client *ClusterClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/configexportbundleinfo_client.go b/go/clients/configexportbundleinfo_client.go new file mode 100644 index 0000000000..be387d4b83 --- /dev/null +++ b/go/clients/configexportbundleinfo_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ConfigExportBundleInfoClient is a client for avi ConfigExportBundleInfo resource +type ConfigExportBundleInfoClient struct { + aviSession *session.AviSession +} + +// NewConfigExportBundleInfoClient creates a new client for ConfigExportBundleInfo resource +func NewConfigExportBundleInfoClient(aviSession *session.AviSession) *ConfigExportBundleInfoClient { + return &ConfigExportBundleInfoClient{aviSession: aviSession} +} + +func (client *ConfigExportBundleInfoClient) getAPIPath(uuid string) string { + path := "api/configexportbundleinfo" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ConfigExportBundleInfo objects +func (client *ConfigExportBundleInfoClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ConfigExportBundleInfo, error) { + var plist []*models.ConfigExportBundleInfo + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ConfigExportBundleInfo by uuid +func (client *ConfigExportBundleInfoClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ConfigExportBundleInfo, error) { + var obj *models.ConfigExportBundleInfo + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ConfigExportBundleInfo by name +func (client *ConfigExportBundleInfoClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ConfigExportBundleInfo, error) { + var obj *models.ConfigExportBundleInfo + err := client.aviSession.GetObjectByName("configexportbundleinfo", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ConfigExportBundleInfo by filters like name, cloud, tenant +// Api creates ConfigExportBundleInfo object with every call. +func (client *ConfigExportBundleInfoClient) GetObject(options ...session.ApiOptionsParams) (*models.ConfigExportBundleInfo, error) { + var obj *models.ConfigExportBundleInfo + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("configexportbundleinfo", newOptions...) + return obj, err +} + +// Create a new ConfigExportBundleInfo object +func (client *ConfigExportBundleInfoClient) Create(obj *models.ConfigExportBundleInfo, options ...session.ApiOptionsParams) (*models.ConfigExportBundleInfo, error) { + var robj *models.ConfigExportBundleInfo + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ConfigExportBundleInfo object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ConfigExportBundleInfo +// or it should be json compatible of form map[string]interface{} +func (client *ConfigExportBundleInfoClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ConfigExportBundleInfo, error) { + var robj *models.ConfigExportBundleInfo + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ConfigExportBundleInfo object with a given UUID +func (client *ConfigExportBundleInfoClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ConfigExportBundleInfoClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/controllerbannerlist_client.go b/go/clients/controllerbannerlist_client.go new file mode 100644 index 0000000000..8f8402e6b8 --- /dev/null +++ b/go/clients/controllerbannerlist_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ControllerBannerListClient is a client for avi ControllerBannerList resource +type ControllerBannerListClient struct { + aviSession *session.AviSession +} + +// NewControllerBannerListClient creates a new client for ControllerBannerList resource +func NewControllerBannerListClient(aviSession *session.AviSession) *ControllerBannerListClient { + return &ControllerBannerListClient{aviSession: aviSession} +} + +func (client *ControllerBannerListClient) getAPIPath(uuid string) string { + path := "api/controllerbannerlist" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ControllerBannerList objects +func (client *ControllerBannerListClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ControllerBannerList, error) { + var plist []*models.ControllerBannerList + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ControllerBannerList by uuid +func (client *ControllerBannerListClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ControllerBannerList, error) { + var obj *models.ControllerBannerList + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ControllerBannerList by name +func (client *ControllerBannerListClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ControllerBannerList, error) { + var obj *models.ControllerBannerList + err := client.aviSession.GetObjectByName("controllerbannerlist", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ControllerBannerList by filters like name, cloud, tenant +// Api creates ControllerBannerList object with every call. +func (client *ControllerBannerListClient) GetObject(options ...session.ApiOptionsParams) (*models.ControllerBannerList, error) { + var obj *models.ControllerBannerList + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("controllerbannerlist", newOptions...) + return obj, err +} + +// Create a new ControllerBannerList object +func (client *ControllerBannerListClient) Create(obj *models.ControllerBannerList, options ...session.ApiOptionsParams) (*models.ControllerBannerList, error) { + var robj *models.ControllerBannerList + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ControllerBannerList object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ControllerBannerList +// or it should be json compatible of form map[string]interface{} +func (client *ControllerBannerListClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ControllerBannerList, error) { + var robj *models.ControllerBannerList + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ControllerBannerList object with a given UUID +func (client *ControllerBannerListClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ControllerBannerListClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/controllerinventoryresponse_client.go b/go/clients/controllerinventoryresponse_client.go new file mode 100644 index 0000000000..b117ad90bc --- /dev/null +++ b/go/clients/controllerinventoryresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ControllerInventoryResponseClient is a client for avi ControllerInventoryResponse resource +type ControllerInventoryResponseClient struct { + aviSession *session.AviSession +} + +// NewControllerInventoryResponseClient creates a new client for ControllerInventoryResponse resource +func NewControllerInventoryResponseClient(aviSession *session.AviSession) *ControllerInventoryResponseClient { + return &ControllerInventoryResponseClient{aviSession: aviSession} +} + +func (client *ControllerInventoryResponseClient) getAPIPath(uuid string) string { + path := "api/controllerinventoryresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ControllerInventoryResponse objects +func (client *ControllerInventoryResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ControllerInventoryResponse, error) { + var plist []*models.ControllerInventoryResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ControllerInventoryResponse by uuid +func (client *ControllerInventoryResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ControllerInventoryResponse, error) { + var obj *models.ControllerInventoryResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ControllerInventoryResponse by name +func (client *ControllerInventoryResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ControllerInventoryResponse, error) { + var obj *models.ControllerInventoryResponse + err := client.aviSession.GetObjectByName("controllerinventoryresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ControllerInventoryResponse by filters like name, cloud, tenant +// Api creates ControllerInventoryResponse object with every call. +func (client *ControllerInventoryResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.ControllerInventoryResponse, error) { + var obj *models.ControllerInventoryResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("controllerinventoryresponse", newOptions...) + return obj, err +} + +// Create a new ControllerInventoryResponse object +func (client *ControllerInventoryResponseClient) Create(obj *models.ControllerInventoryResponse, options ...session.ApiOptionsParams) (*models.ControllerInventoryResponse, error) { + var robj *models.ControllerInventoryResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ControllerInventoryResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ControllerInventoryResponse +// or it should be json compatible of form map[string]interface{} +func (client *ControllerInventoryResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ControllerInventoryResponse, error) { + var robj *models.ControllerInventoryResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ControllerInventoryResponse object with a given UUID +func (client *ControllerInventoryResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ControllerInventoryResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/controllerlicense_client.go b/go/clients/controllerlicense_client.go new file mode 100644 index 0000000000..0963d46635 --- /dev/null +++ b/go/clients/controllerlicense_client.go @@ -0,0 +1,112 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ControllerLicenseClient is a client for avi ControllerLicense resource +type ControllerLicenseClient struct { + aviSession *session.AviSession +} + +// NewControllerLicenseClient creates a new client for ControllerLicense resource +func NewControllerLicenseClient(aviSession *session.AviSession) *ControllerLicenseClient { + return &ControllerLicenseClient{aviSession: aviSession} +} + +func (client *ControllerLicenseClient) getAPIPath(uuid string) string { + path := "api/controllerlicense" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ControllerLicense objects +func (client *ControllerLicenseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ControllerLicense, error) { + var plist []*models.ControllerLicense + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ControllerLicense by uuid +func (client *ControllerLicenseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var obj *models.ControllerLicense + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ControllerLicense by name +func (client *ControllerLicenseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var obj *models.ControllerLicense + err := client.aviSession.GetObjectByName("controllerlicense", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ControllerLicense by filters like name, cloud, tenant +// Api creates ControllerLicense object with every call. +func (client *ControllerLicenseClient) GetObject(options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var obj *models.ControllerLicense + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("controllerlicense", newOptions...) + return obj, err +} + +// Create a new ControllerLicense object +func (client *ControllerLicenseClient) Create(obj *models.ControllerLicense, options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var robj *models.ControllerLicense + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Update an existing ControllerLicense object +func (client *ControllerLicenseClient) Update(obj *models.ControllerLicense, options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var robj *models.ControllerLicense + path := client.getAPIPath(*obj.UUID) + err := client.aviSession.Put(path, obj, &robj, options...) + return robj, err +} + +// Patch an existing ControllerLicense object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ControllerLicense +// or it should be json compatible of form map[string]interface{} +func (client *ControllerLicenseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ControllerLicense, error) { + var robj *models.ControllerLicense + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ControllerLicense object with a given UUID +func (client *ControllerLicenseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// DeleteByName - Delete an existing ControllerLicense object with a given name +func (client *ControllerLicenseClient) DeleteByName(name string, options ...session.ApiOptionsParams) error { + res, err := client.GetByName(name, options...) + if err != nil { + return err + } + return client.Delete(*res.UUID, options...) +} + +// GetAviSession +func (client *ControllerLicenseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/controllerversion_client.go b/go/clients/controllerversion_client.go new file mode 100644 index 0000000000..a6b6bce963 --- /dev/null +++ b/go/clients/controllerversion_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ControllerVersionClient is a client for avi ControllerVersion resource +type ControllerVersionClient struct { + aviSession *session.AviSession +} + +// NewControllerVersionClient creates a new client for ControllerVersion resource +func NewControllerVersionClient(aviSession *session.AviSession) *ControllerVersionClient { + return &ControllerVersionClient{aviSession: aviSession} +} + +func (client *ControllerVersionClient) getAPIPath(uuid string) string { + path := "api/controllerversion" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ControllerVersion objects +func (client *ControllerVersionClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ControllerVersion, error) { + var plist []*models.ControllerVersion + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ControllerVersion by uuid +func (client *ControllerVersionClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ControllerVersion, error) { + var obj *models.ControllerVersion + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ControllerVersion by name +func (client *ControllerVersionClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ControllerVersion, error) { + var obj *models.ControllerVersion + err := client.aviSession.GetObjectByName("controllerversion", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ControllerVersion by filters like name, cloud, tenant +// Api creates ControllerVersion object with every call. +func (client *ControllerVersionClient) GetObject(options ...session.ApiOptionsParams) (*models.ControllerVersion, error) { + var obj *models.ControllerVersion + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("controllerversion", newOptions...) + return obj, err +} + +// Create a new ControllerVersion object +func (client *ControllerVersionClient) Create(obj *models.ControllerVersion, options ...session.ApiOptionsParams) (*models.ControllerVersion, error) { + var robj *models.ControllerVersion + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ControllerVersion object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ControllerVersion +// or it should be json compatible of form map[string]interface{} +func (client *ControllerVersionClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ControllerVersion, error) { + var robj *models.ControllerVersion + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ControllerVersion object with a given UUID +func (client *ControllerVersionClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ControllerVersionClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/defaultvaluesaugmentation_client.go b/go/clients/defaultvaluesaugmentation_client.go new file mode 100644 index 0000000000..ddde25d586 --- /dev/null +++ b/go/clients/defaultvaluesaugmentation_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// DefaultValuesAugmentationClient is a client for avi DefaultValuesAugmentation resource +type DefaultValuesAugmentationClient struct { + aviSession *session.AviSession +} + +// NewDefaultValuesAugmentationClient creates a new client for DefaultValuesAugmentation resource +func NewDefaultValuesAugmentationClient(aviSession *session.AviSession) *DefaultValuesAugmentationClient { + return &DefaultValuesAugmentationClient{aviSession: aviSession} +} + +func (client *DefaultValuesAugmentationClient) getAPIPath(uuid string) string { + path := "api/defaultvaluesaugmentation" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of DefaultValuesAugmentation objects +func (client *DefaultValuesAugmentationClient) GetAll(options ...session.ApiOptionsParams) ([]*models.DefaultValuesAugmentation, error) { + var plist []*models.DefaultValuesAugmentation + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing DefaultValuesAugmentation by uuid +func (client *DefaultValuesAugmentationClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.DefaultValuesAugmentation, error) { + var obj *models.DefaultValuesAugmentation + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing DefaultValuesAugmentation by name +func (client *DefaultValuesAugmentationClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.DefaultValuesAugmentation, error) { + var obj *models.DefaultValuesAugmentation + err := client.aviSession.GetObjectByName("defaultvaluesaugmentation", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing DefaultValuesAugmentation by filters like name, cloud, tenant +// Api creates DefaultValuesAugmentation object with every call. +func (client *DefaultValuesAugmentationClient) GetObject(options ...session.ApiOptionsParams) (*models.DefaultValuesAugmentation, error) { + var obj *models.DefaultValuesAugmentation + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("defaultvaluesaugmentation", newOptions...) + return obj, err +} + +// Create a new DefaultValuesAugmentation object +func (client *DefaultValuesAugmentationClient) Create(obj *models.DefaultValuesAugmentation, options ...session.ApiOptionsParams) (*models.DefaultValuesAugmentation, error) { + var robj *models.DefaultValuesAugmentation + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing DefaultValuesAugmentation object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.DefaultValuesAugmentation +// or it should be json compatible of form map[string]interface{} +func (client *DefaultValuesAugmentationClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.DefaultValuesAugmentation, error) { + var robj *models.DefaultValuesAugmentation + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing DefaultValuesAugmentation object with a given UUID +func (client *DefaultValuesAugmentationClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *DefaultValuesAugmentationClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/dnslookupresult_client.go b/go/clients/dnslookupresult_client.go new file mode 100644 index 0000000000..911c059969 --- /dev/null +++ b/go/clients/dnslookupresult_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// DNSLookupResultClient is a client for avi DNSLookupResult resource +type DNSLookupResultClient struct { + aviSession *session.AviSession +} + +// NewDNSLookupResultClient creates a new client for DNSLookupResult resource +func NewDNSLookupResultClient(aviSession *session.AviSession) *DNSLookupResultClient { + return &DNSLookupResultClient{aviSession: aviSession} +} + +func (client *DNSLookupResultClient) getAPIPath(uuid string) string { + path := "api/dnslookupresult" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of DNSLookupResult objects +func (client *DNSLookupResultClient) GetAll(options ...session.ApiOptionsParams) ([]*models.DNSLookupResult, error) { + var plist []*models.DNSLookupResult + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing DNSLookupResult by uuid +func (client *DNSLookupResultClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.DNSLookupResult, error) { + var obj *models.DNSLookupResult + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing DNSLookupResult by name +func (client *DNSLookupResultClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.DNSLookupResult, error) { + var obj *models.DNSLookupResult + err := client.aviSession.GetObjectByName("dnslookupresult", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing DNSLookupResult by filters like name, cloud, tenant +// Api creates DNSLookupResult object with every call. +func (client *DNSLookupResultClient) GetObject(options ...session.ApiOptionsParams) (*models.DNSLookupResult, error) { + var obj *models.DNSLookupResult + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("dnslookupresult", newOptions...) + return obj, err +} + +// Create a new DNSLookupResult object +func (client *DNSLookupResultClient) Create(obj *models.DNSLookupResult, options ...session.ApiOptionsParams) (*models.DNSLookupResult, error) { + var robj *models.DNSLookupResult + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing DNSLookupResult object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.DNSLookupResult +// or it should be json compatible of form map[string]interface{} +func (client *DNSLookupResultClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.DNSLookupResult, error) { + var robj *models.DNSLookupResult + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing DNSLookupResult object with a given UUID +func (client *DNSLookupResultClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *DNSLookupResultClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/eventlog_client.go b/go/clients/eventlog_client.go new file mode 100644 index 0000000000..863feef6e6 --- /dev/null +++ b/go/clients/eventlog_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// EventLogClient is a client for avi EventLog resource +type EventLogClient struct { + aviSession *session.AviSession +} + +// NewEventLogClient creates a new client for EventLog resource +func NewEventLogClient(aviSession *session.AviSession) *EventLogClient { + return &EventLogClient{aviSession: aviSession} +} + +func (client *EventLogClient) getAPIPath(uuid string) string { + path := "api/eventlog" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of EventLog objects +func (client *EventLogClient) GetAll(options ...session.ApiOptionsParams) ([]*models.EventLog, error) { + var plist []*models.EventLog + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing EventLog by uuid +func (client *EventLogClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.EventLog, error) { + var obj *models.EventLog + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing EventLog by name +func (client *EventLogClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.EventLog, error) { + var obj *models.EventLog + err := client.aviSession.GetObjectByName("eventlog", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing EventLog by filters like name, cloud, tenant +// Api creates EventLog object with every call. +func (client *EventLogClient) GetObject(options ...session.ApiOptionsParams) (*models.EventLog, error) { + var obj *models.EventLog + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("eventlog", newOptions...) + return obj, err +} + +// Create a new EventLog object +func (client *EventLogClient) Create(obj *models.EventLog, options ...session.ApiOptionsParams) (*models.EventLog, error) { + var robj *models.EventLog + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing EventLog object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.EventLog +// or it should be json compatible of form map[string]interface{} +func (client *EventLogClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.EventLog, error) { + var robj *models.EventLog + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing EventLog object with a given UUID +func (client *EventLogClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *EventLogClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/fileserviceipamdnsscriptuploadack_client.go b/go/clients/fileserviceipamdnsscriptuploadack_client.go new file mode 100644 index 0000000000..57cd7977ce --- /dev/null +++ b/go/clients/fileserviceipamdnsscriptuploadack_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// FileServiceIPAMDNSScriptUploadAckClient is a client for avi FileServiceIPAMDNSScriptUploadAck resource +type FileServiceIPAMDNSScriptUploadAckClient struct { + aviSession *session.AviSession +} + +// NewFileServiceIPAMDNSScriptUploadAckClient creates a new client for FileServiceIPAMDNSScriptUploadAck resource +func NewFileServiceIPAMDNSScriptUploadAckClient(aviSession *session.AviSession) *FileServiceIPAMDNSScriptUploadAckClient { + return &FileServiceIPAMDNSScriptUploadAckClient{aviSession: aviSession} +} + +func (client *FileServiceIPAMDNSScriptUploadAckClient) getAPIPath(uuid string) string { + path := "api/fileserviceipamdnsscriptuploadack" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of FileServiceIPAMDNSScriptUploadAck objects +func (client *FileServiceIPAMDNSScriptUploadAckClient) GetAll(options ...session.ApiOptionsParams) ([]*models.FileServiceIPAMDNSScriptUploadAck, error) { + var plist []*models.FileServiceIPAMDNSScriptUploadAck + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing FileServiceIPAMDNSScriptUploadAck by uuid +func (client *FileServiceIPAMDNSScriptUploadAckClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.FileServiceIPAMDNSScriptUploadAck, error) { + var obj *models.FileServiceIPAMDNSScriptUploadAck + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing FileServiceIPAMDNSScriptUploadAck by name +func (client *FileServiceIPAMDNSScriptUploadAckClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.FileServiceIPAMDNSScriptUploadAck, error) { + var obj *models.FileServiceIPAMDNSScriptUploadAck + err := client.aviSession.GetObjectByName("fileserviceipamdnsscriptuploadack", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing FileServiceIPAMDNSScriptUploadAck by filters like name, cloud, tenant +// Api creates FileServiceIPAMDNSScriptUploadAck object with every call. +func (client *FileServiceIPAMDNSScriptUploadAckClient) GetObject(options ...session.ApiOptionsParams) (*models.FileServiceIPAMDNSScriptUploadAck, error) { + var obj *models.FileServiceIPAMDNSScriptUploadAck + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("fileserviceipamdnsscriptuploadack", newOptions...) + return obj, err +} + +// Create a new FileServiceIPAMDNSScriptUploadAck object +func (client *FileServiceIPAMDNSScriptUploadAckClient) Create(obj *models.FileServiceIPAMDNSScriptUploadAck, options ...session.ApiOptionsParams) (*models.FileServiceIPAMDNSScriptUploadAck, error) { + var robj *models.FileServiceIPAMDNSScriptUploadAck + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing FileServiceIPAMDNSScriptUploadAck object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.FileServiceIPAMDNSScriptUploadAck +// or it should be json compatible of form map[string]interface{} +func (client *FileServiceIPAMDNSScriptUploadAckClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.FileServiceIPAMDNSScriptUploadAck, error) { + var robj *models.FileServiceIPAMDNSScriptUploadAck + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing FileServiceIPAMDNSScriptUploadAck object with a given UUID +func (client *FileServiceIPAMDNSScriptUploadAckClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *FileServiceIPAMDNSScriptUploadAckClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/fileservicelisting_client.go b/go/clients/fileservicelisting_client.go new file mode 100644 index 0000000000..99d59e480a --- /dev/null +++ b/go/clients/fileservicelisting_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// FileServiceListingClient is a client for avi FileServiceListing resource +type FileServiceListingClient struct { + aviSession *session.AviSession +} + +// NewFileServiceListingClient creates a new client for FileServiceListing resource +func NewFileServiceListingClient(aviSession *session.AviSession) *FileServiceListingClient { + return &FileServiceListingClient{aviSession: aviSession} +} + +func (client *FileServiceListingClient) getAPIPath(uuid string) string { + path := "api/fileservicelisting" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of FileServiceListing objects +func (client *FileServiceListingClient) GetAll(options ...session.ApiOptionsParams) ([]*models.FileServiceListing, error) { + var plist []*models.FileServiceListing + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing FileServiceListing by uuid +func (client *FileServiceListingClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.FileServiceListing, error) { + var obj *models.FileServiceListing + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing FileServiceListing by name +func (client *FileServiceListingClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.FileServiceListing, error) { + var obj *models.FileServiceListing + err := client.aviSession.GetObjectByName("fileservicelisting", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing FileServiceListing by filters like name, cloud, tenant +// Api creates FileServiceListing object with every call. +func (client *FileServiceListingClient) GetObject(options ...session.ApiOptionsParams) (*models.FileServiceListing, error) { + var obj *models.FileServiceListing + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("fileservicelisting", newOptions...) + return obj, err +} + +// Create a new FileServiceListing object +func (client *FileServiceListingClient) Create(obj *models.FileServiceListing, options ...session.ApiOptionsParams) (*models.FileServiceListing, error) { + var robj *models.FileServiceListing + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing FileServiceListing object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.FileServiceListing +// or it should be json compatible of form map[string]interface{} +func (client *FileServiceListingClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.FileServiceListing, error) { + var robj *models.FileServiceListing + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing FileServiceListing object with a given UUID +func (client *FileServiceListingClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *FileServiceListingClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/gslbfileserviceuploadack_client.go b/go/clients/gslbfileserviceuploadack_client.go new file mode 100644 index 0000000000..5e04dde09a --- /dev/null +++ b/go/clients/gslbfileserviceuploadack_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// GslbFileServiceUploadAckClient is a client for avi GslbFileServiceUploadAck resource +type GslbFileServiceUploadAckClient struct { + aviSession *session.AviSession +} + +// NewGslbFileServiceUploadAckClient creates a new client for GslbFileServiceUploadAck resource +func NewGslbFileServiceUploadAckClient(aviSession *session.AviSession) *GslbFileServiceUploadAckClient { + return &GslbFileServiceUploadAckClient{aviSession: aviSession} +} + +func (client *GslbFileServiceUploadAckClient) getAPIPath(uuid string) string { + path := "api/gslbfileserviceuploadack" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of GslbFileServiceUploadAck objects +func (client *GslbFileServiceUploadAckClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbFileServiceUploadAck, error) { + var plist []*models.GslbFileServiceUploadAck + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing GslbFileServiceUploadAck by uuid +func (client *GslbFileServiceUploadAckClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbFileServiceUploadAck, error) { + var obj *models.GslbFileServiceUploadAck + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing GslbFileServiceUploadAck by name +func (client *GslbFileServiceUploadAckClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbFileServiceUploadAck, error) { + var obj *models.GslbFileServiceUploadAck + err := client.aviSession.GetObjectByName("gslbfileserviceuploadack", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing GslbFileServiceUploadAck by filters like name, cloud, tenant +// Api creates GslbFileServiceUploadAck object with every call. +func (client *GslbFileServiceUploadAckClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbFileServiceUploadAck, error) { + var obj *models.GslbFileServiceUploadAck + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("gslbfileserviceuploadack", newOptions...) + return obj, err +} + +// Create a new GslbFileServiceUploadAck object +func (client *GslbFileServiceUploadAckClient) Create(obj *models.GslbFileServiceUploadAck, options ...session.ApiOptionsParams) (*models.GslbFileServiceUploadAck, error) { + var robj *models.GslbFileServiceUploadAck + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing GslbFileServiceUploadAck object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.GslbFileServiceUploadAck +// or it should be json compatible of form map[string]interface{} +func (client *GslbFileServiceUploadAckClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbFileServiceUploadAck, error) { + var robj *models.GslbFileServiceUploadAck + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing GslbFileServiceUploadAck object with a given UUID +func (client *GslbFileServiceUploadAckClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *GslbFileServiceUploadAckClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/gslbsiteops_client.go b/go/clients/gslbsiteops_client.go new file mode 100644 index 0000000000..58dea249e7 --- /dev/null +++ b/go/clients/gslbsiteops_client.go @@ -0,0 +1,112 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// GslbSiteOpsClient is a client for avi GslbSiteOps resource +type GslbSiteOpsClient struct { + aviSession *session.AviSession +} + +// NewGslbSiteOpsClient creates a new client for GslbSiteOps resource +func NewGslbSiteOpsClient(aviSession *session.AviSession) *GslbSiteOpsClient { + return &GslbSiteOpsClient{aviSession: aviSession} +} + +func (client *GslbSiteOpsClient) getAPIPath(uuid string) string { + path := "api/gslbsiteops" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of GslbSiteOps objects +func (client *GslbSiteOpsClient) GetAll(options ...session.ApiOptionsParams) ([]*models.GslbSiteOps, error) { + var plist []*models.GslbSiteOps + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing GslbSiteOps by uuid +func (client *GslbSiteOpsClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var obj *models.GslbSiteOps + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing GslbSiteOps by name +func (client *GslbSiteOpsClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var obj *models.GslbSiteOps + err := client.aviSession.GetObjectByName("gslbsiteops", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing GslbSiteOps by filters like name, cloud, tenant +// Api creates GslbSiteOps object with every call. +func (client *GslbSiteOpsClient) GetObject(options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var obj *models.GslbSiteOps + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("gslbsiteops", newOptions...) + return obj, err +} + +// Create a new GslbSiteOps object +func (client *GslbSiteOpsClient) Create(obj *models.GslbSiteOps, options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var robj *models.GslbSiteOps + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Update an existing GslbSiteOps object +func (client *GslbSiteOpsClient) Update(obj *models.GslbSiteOps, options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var robj *models.GslbSiteOps + path := client.getAPIPath(*obj.UUID) + err := client.aviSession.Put(path, obj, &robj, options...) + return robj, err +} + +// Patch an existing GslbSiteOps object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.GslbSiteOps +// or it should be json compatible of form map[string]interface{} +func (client *GslbSiteOpsClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.GslbSiteOps, error) { + var robj *models.GslbSiteOps + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing GslbSiteOps object with a given UUID +func (client *GslbSiteOpsClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// DeleteByName - Delete an existing GslbSiteOps object with a given name +func (client *GslbSiteOpsClient) DeleteByName(name string, options ...session.ApiOptionsParams) error { + res, err := client.GetByName(name, options...) + if err != nil { + return err + } + return client.Delete(*res.UUID, options...) +} + +// GetAviSession +func (client *GslbSiteOpsClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/imageinventory_client.go b/go/clients/imageinventory_client.go new file mode 100644 index 0000000000..92d799c8a8 --- /dev/null +++ b/go/clients/imageinventory_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ImageInventoryClient is a client for avi ImageInventory resource +type ImageInventoryClient struct { + aviSession *session.AviSession +} + +// NewImageInventoryClient creates a new client for ImageInventory resource +func NewImageInventoryClient(aviSession *session.AviSession) *ImageInventoryClient { + return &ImageInventoryClient{aviSession: aviSession} +} + +func (client *ImageInventoryClient) getAPIPath(uuid string) string { + path := "api/imageinventory" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ImageInventory objects +func (client *ImageInventoryClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ImageInventory, error) { + var plist []*models.ImageInventory + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ImageInventory by uuid +func (client *ImageInventoryClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ImageInventory, error) { + var obj *models.ImageInventory + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ImageInventory by name +func (client *ImageInventoryClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ImageInventory, error) { + var obj *models.ImageInventory + err := client.aviSession.GetObjectByName("imageinventory", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ImageInventory by filters like name, cloud, tenant +// Api creates ImageInventory object with every call. +func (client *ImageInventoryClient) GetObject(options ...session.ApiOptionsParams) (*models.ImageInventory, error) { + var obj *models.ImageInventory + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("imageinventory", newOptions...) + return obj, err +} + +// Create a new ImageInventory object +func (client *ImageInventoryClient) Create(obj *models.ImageInventory, options ...session.ApiOptionsParams) (*models.ImageInventory, error) { + var robj *models.ImageInventory + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ImageInventory object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ImageInventory +// or it should be json compatible of form map[string]interface{} +func (client *ImageInventoryClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ImageInventory, error) { + var robj *models.ImageInventory + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ImageInventory object with a given UUID +func (client *ImageInventoryClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ImageInventoryClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/imagerawinventoryresponse_client.go b/go/clients/imagerawinventoryresponse_client.go new file mode 100644 index 0000000000..78372e6e9e --- /dev/null +++ b/go/clients/imagerawinventoryresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ImageRawInventoryResponseClient is a client for avi ImageRawInventoryResponse resource +type ImageRawInventoryResponseClient struct { + aviSession *session.AviSession +} + +// NewImageRawInventoryResponseClient creates a new client for ImageRawInventoryResponse resource +func NewImageRawInventoryResponseClient(aviSession *session.AviSession) *ImageRawInventoryResponseClient { + return &ImageRawInventoryResponseClient{aviSession: aviSession} +} + +func (client *ImageRawInventoryResponseClient) getAPIPath(uuid string) string { + path := "api/imagerawinventoryresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ImageRawInventoryResponse objects +func (client *ImageRawInventoryResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ImageRawInventoryResponse, error) { + var plist []*models.ImageRawInventoryResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ImageRawInventoryResponse by uuid +func (client *ImageRawInventoryResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ImageRawInventoryResponse, error) { + var obj *models.ImageRawInventoryResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ImageRawInventoryResponse by name +func (client *ImageRawInventoryResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ImageRawInventoryResponse, error) { + var obj *models.ImageRawInventoryResponse + err := client.aviSession.GetObjectByName("imagerawinventoryresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ImageRawInventoryResponse by filters like name, cloud, tenant +// Api creates ImageRawInventoryResponse object with every call. +func (client *ImageRawInventoryResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.ImageRawInventoryResponse, error) { + var obj *models.ImageRawInventoryResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("imagerawinventoryresponse", newOptions...) + return obj, err +} + +// Create a new ImageRawInventoryResponse object +func (client *ImageRawInventoryResponseClient) Create(obj *models.ImageRawInventoryResponse, options ...session.ApiOptionsParams) (*models.ImageRawInventoryResponse, error) { + var robj *models.ImageRawInventoryResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ImageRawInventoryResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ImageRawInventoryResponse +// or it should be json compatible of form map[string]interface{} +func (client *ImageRawInventoryResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ImageRawInventoryResponse, error) { + var robj *models.ImageRawInventoryResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ImageRawInventoryResponse object with a given UUID +func (client *ImageRawInventoryResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ImageRawInventoryResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/initialdata_client.go b/go/clients/initialdata_client.go new file mode 100644 index 0000000000..ed0746ec49 --- /dev/null +++ b/go/clients/initialdata_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// InitialDataClient is a client for avi InitialData resource +type InitialDataClient struct { + aviSession *session.AviSession +} + +// NewInitialDataClient creates a new client for InitialData resource +func NewInitialDataClient(aviSession *session.AviSession) *InitialDataClient { + return &InitialDataClient{aviSession: aviSession} +} + +func (client *InitialDataClient) getAPIPath(uuid string) string { + path := "api/initialdata" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of InitialData objects +func (client *InitialDataClient) GetAll(options ...session.ApiOptionsParams) ([]*models.InitialData, error) { + var plist []*models.InitialData + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing InitialData by uuid +func (client *InitialDataClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.InitialData, error) { + var obj *models.InitialData + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing InitialData by name +func (client *InitialDataClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.InitialData, error) { + var obj *models.InitialData + err := client.aviSession.GetObjectByName("initialdata", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing InitialData by filters like name, cloud, tenant +// Api creates InitialData object with every call. +func (client *InitialDataClient) GetObject(options ...session.ApiOptionsParams) (*models.InitialData, error) { + var obj *models.InitialData + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("initialdata", newOptions...) + return obj, err +} + +// Create a new InitialData object +func (client *InitialDataClient) Create(obj *models.InitialData, options ...session.ApiOptionsParams) (*models.InitialData, error) { + var robj *models.InitialData + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing InitialData object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.InitialData +// or it should be json compatible of form map[string]interface{} +func (client *InitialDataClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.InitialData, error) { + var robj *models.InitialData + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing InitialData object with a given UUID +func (client *InitialDataClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *InitialDataClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/inventorymapresponse_client.go b/go/clients/inventorymapresponse_client.go new file mode 100644 index 0000000000..539d2c97c8 --- /dev/null +++ b/go/clients/inventorymapresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// InventoryMapResponseClient is a client for avi InventoryMapResponse resource +type InventoryMapResponseClient struct { + aviSession *session.AviSession +} + +// NewInventoryMapResponseClient creates a new client for InventoryMapResponse resource +func NewInventoryMapResponseClient(aviSession *session.AviSession) *InventoryMapResponseClient { + return &InventoryMapResponseClient{aviSession: aviSession} +} + +func (client *InventoryMapResponseClient) getAPIPath(uuid string) string { + path := "api/inventorymapresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of InventoryMapResponse objects +func (client *InventoryMapResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.InventoryMapResponse, error) { + var plist []*models.InventoryMapResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing InventoryMapResponse by uuid +func (client *InventoryMapResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.InventoryMapResponse, error) { + var obj *models.InventoryMapResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing InventoryMapResponse by name +func (client *InventoryMapResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.InventoryMapResponse, error) { + var obj *models.InventoryMapResponse + err := client.aviSession.GetObjectByName("inventorymapresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing InventoryMapResponse by filters like name, cloud, tenant +// Api creates InventoryMapResponse object with every call. +func (client *InventoryMapResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.InventoryMapResponse, error) { + var obj *models.InventoryMapResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("inventorymapresponse", newOptions...) + return obj, err +} + +// Create a new InventoryMapResponse object +func (client *InventoryMapResponseClient) Create(obj *models.InventoryMapResponse, options ...session.ApiOptionsParams) (*models.InventoryMapResponse, error) { + var robj *models.InventoryMapResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing InventoryMapResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.InventoryMapResponse +// or it should be json compatible of form map[string]interface{} +func (client *InventoryMapResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.InventoryMapResponse, error) { + var robj *models.InventoryMapResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing InventoryMapResponse object with a given UUID +func (client *InventoryMapResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *InventoryMapResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/licenseusageinfo_client.go b/go/clients/licenseusageinfo_client.go new file mode 100644 index 0000000000..62c5ca1f9d --- /dev/null +++ b/go/clients/licenseusageinfo_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// LicenseUsageInfoClient is a client for avi LicenseUsageInfo resource +type LicenseUsageInfoClient struct { + aviSession *session.AviSession +} + +// NewLicenseUsageInfoClient creates a new client for LicenseUsageInfo resource +func NewLicenseUsageInfoClient(aviSession *session.AviSession) *LicenseUsageInfoClient { + return &LicenseUsageInfoClient{aviSession: aviSession} +} + +func (client *LicenseUsageInfoClient) getAPIPath(uuid string) string { + path := "api/licenseusageinfo" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of LicenseUsageInfo objects +func (client *LicenseUsageInfoClient) GetAll(options ...session.ApiOptionsParams) ([]*models.LicenseUsageInfo, error) { + var plist []*models.LicenseUsageInfo + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing LicenseUsageInfo by uuid +func (client *LicenseUsageInfoClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.LicenseUsageInfo, error) { + var obj *models.LicenseUsageInfo + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing LicenseUsageInfo by name +func (client *LicenseUsageInfoClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.LicenseUsageInfo, error) { + var obj *models.LicenseUsageInfo + err := client.aviSession.GetObjectByName("licenseusageinfo", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing LicenseUsageInfo by filters like name, cloud, tenant +// Api creates LicenseUsageInfo object with every call. +func (client *LicenseUsageInfoClient) GetObject(options ...session.ApiOptionsParams) (*models.LicenseUsageInfo, error) { + var obj *models.LicenseUsageInfo + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("licenseusageinfo", newOptions...) + return obj, err +} + +// Create a new LicenseUsageInfo object +func (client *LicenseUsageInfoClient) Create(obj *models.LicenseUsageInfo, options ...session.ApiOptionsParams) (*models.LicenseUsageInfo, error) { + var robj *models.LicenseUsageInfo + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing LicenseUsageInfo object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.LicenseUsageInfo +// or it should be json compatible of form map[string]interface{} +func (client *LicenseUsageInfoClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.LicenseUsageInfo, error) { + var robj *models.LicenseUsageInfo + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing LicenseUsageInfo object with a given UUID +func (client *LicenseUsageInfoClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *LicenseUsageInfoClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/licensingactionresult_client.go b/go/clients/licensingactionresult_client.go new file mode 100644 index 0000000000..c5e7eb3918 --- /dev/null +++ b/go/clients/licensingactionresult_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// LicensingActionResultClient is a client for avi LicensingActionResult resource +type LicensingActionResultClient struct { + aviSession *session.AviSession +} + +// NewLicensingActionResultClient creates a new client for LicensingActionResult resource +func NewLicensingActionResultClient(aviSession *session.AviSession) *LicensingActionResultClient { + return &LicensingActionResultClient{aviSession: aviSession} +} + +func (client *LicensingActionResultClient) getAPIPath(uuid string) string { + path := "api/licensingactionresult" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of LicensingActionResult objects +func (client *LicensingActionResultClient) GetAll(options ...session.ApiOptionsParams) ([]*models.LicensingActionResult, error) { + var plist []*models.LicensingActionResult + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing LicensingActionResult by uuid +func (client *LicensingActionResultClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.LicensingActionResult, error) { + var obj *models.LicensingActionResult + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing LicensingActionResult by name +func (client *LicensingActionResultClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.LicensingActionResult, error) { + var obj *models.LicensingActionResult + err := client.aviSession.GetObjectByName("licensingactionresult", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing LicensingActionResult by filters like name, cloud, tenant +// Api creates LicensingActionResult object with every call. +func (client *LicensingActionResultClient) GetObject(options ...session.ApiOptionsParams) (*models.LicensingActionResult, error) { + var obj *models.LicensingActionResult + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("licensingactionresult", newOptions...) + return obj, err +} + +// Create a new LicensingActionResult object +func (client *LicensingActionResultClient) Create(obj *models.LicensingActionResult, options ...session.ApiOptionsParams) (*models.LicensingActionResult, error) { + var robj *models.LicensingActionResult + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing LicensingActionResult object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.LicensingActionResult +// or it should be json compatible of form map[string]interface{} +func (client *LicensingActionResultClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.LicensingActionResult, error) { + var robj *models.LicensingActionResult + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing LicensingActionResult object with a given UUID +func (client *LicensingActionResultClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *LicensingActionResultClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/licensingserialkeyrequest_client.go b/go/clients/licensingserialkeyrequest_client.go new file mode 100644 index 0000000000..48c1ee5e05 --- /dev/null +++ b/go/clients/licensingserialkeyrequest_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// LicensingSerialKeyRequestClient is a client for avi LicensingSerialKeyRequest resource +type LicensingSerialKeyRequestClient struct { + aviSession *session.AviSession +} + +// NewLicensingSerialKeyRequestClient creates a new client for LicensingSerialKeyRequest resource +func NewLicensingSerialKeyRequestClient(aviSession *session.AviSession) *LicensingSerialKeyRequestClient { + return &LicensingSerialKeyRequestClient{aviSession: aviSession} +} + +func (client *LicensingSerialKeyRequestClient) getAPIPath(uuid string) string { + path := "api/licensingserialkeyrequest" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of LicensingSerialKeyRequest objects +func (client *LicensingSerialKeyRequestClient) GetAll(options ...session.ApiOptionsParams) ([]*models.LicensingSerialKeyRequest, error) { + var plist []*models.LicensingSerialKeyRequest + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing LicensingSerialKeyRequest by uuid +func (client *LicensingSerialKeyRequestClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.LicensingSerialKeyRequest, error) { + var obj *models.LicensingSerialKeyRequest + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing LicensingSerialKeyRequest by name +func (client *LicensingSerialKeyRequestClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.LicensingSerialKeyRequest, error) { + var obj *models.LicensingSerialKeyRequest + err := client.aviSession.GetObjectByName("licensingserialkeyrequest", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing LicensingSerialKeyRequest by filters like name, cloud, tenant +// Api creates LicensingSerialKeyRequest object with every call. +func (client *LicensingSerialKeyRequestClient) GetObject(options ...session.ApiOptionsParams) (*models.LicensingSerialKeyRequest, error) { + var obj *models.LicensingSerialKeyRequest + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("licensingserialkeyrequest", newOptions...) + return obj, err +} + +// Create a new LicensingSerialKeyRequest object +func (client *LicensingSerialKeyRequestClient) Create(obj *models.LicensingSerialKeyRequest, options ...session.ApiOptionsParams) (*models.LicensingSerialKeyRequest, error) { + var robj *models.LicensingSerialKeyRequest + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing LicensingSerialKeyRequest object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.LicensingSerialKeyRequest +// or it should be json compatible of form map[string]interface{} +func (client *LicensingSerialKeyRequestClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.LicensingSerialKeyRequest, error) { + var robj *models.LicensingSerialKeyRequest + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing LicensingSerialKeyRequest object with a given UUID +func (client *LicensingSerialKeyRequestClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *LicensingSerialKeyRequestClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/networksubnetlist_client.go b/go/clients/networksubnetlist_client.go new file mode 100644 index 0000000000..973106a7ab --- /dev/null +++ b/go/clients/networksubnetlist_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// NetworkSubnetListClient is a client for avi NetworkSubnetList resource +type NetworkSubnetListClient struct { + aviSession *session.AviSession +} + +// NewNetworkSubnetListClient creates a new client for NetworkSubnetList resource +func NewNetworkSubnetListClient(aviSession *session.AviSession) *NetworkSubnetListClient { + return &NetworkSubnetListClient{aviSession: aviSession} +} + +func (client *NetworkSubnetListClient) getAPIPath(uuid string) string { + path := "api/networksubnetlist" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of NetworkSubnetList objects +func (client *NetworkSubnetListClient) GetAll(options ...session.ApiOptionsParams) ([]*models.NetworkSubnetList, error) { + var plist []*models.NetworkSubnetList + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing NetworkSubnetList by uuid +func (client *NetworkSubnetListClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.NetworkSubnetList, error) { + var obj *models.NetworkSubnetList + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing NetworkSubnetList by name +func (client *NetworkSubnetListClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.NetworkSubnetList, error) { + var obj *models.NetworkSubnetList + err := client.aviSession.GetObjectByName("networksubnetlist", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing NetworkSubnetList by filters like name, cloud, tenant +// Api creates NetworkSubnetList object with every call. +func (client *NetworkSubnetListClient) GetObject(options ...session.ApiOptionsParams) (*models.NetworkSubnetList, error) { + var obj *models.NetworkSubnetList + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("networksubnetlist", newOptions...) + return obj, err +} + +// Create a new NetworkSubnetList object +func (client *NetworkSubnetListClient) Create(obj *models.NetworkSubnetList, options ...session.ApiOptionsParams) (*models.NetworkSubnetList, error) { + var robj *models.NetworkSubnetList + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing NetworkSubnetList object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.NetworkSubnetList +// or it should be json compatible of form map[string]interface{} +func (client *NetworkSubnetListClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.NetworkSubnetList, error) { + var robj *models.NetworkSubnetList + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing NetworkSubnetList object with a given UUID +func (client *NetworkSubnetListClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *NetworkSubnetListClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/objectgraphlist_client.go b/go/clients/objectgraphlist_client.go new file mode 100644 index 0000000000..150a571e62 --- /dev/null +++ b/go/clients/objectgraphlist_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// ObjectGraphListClient is a client for avi ObjectGraphList resource +type ObjectGraphListClient struct { + aviSession *session.AviSession +} + +// NewObjectGraphListClient creates a new client for ObjectGraphList resource +func NewObjectGraphListClient(aviSession *session.AviSession) *ObjectGraphListClient { + return &ObjectGraphListClient{aviSession: aviSession} +} + +func (client *ObjectGraphListClient) getAPIPath(uuid string) string { + path := "api/objectgraphlist" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of ObjectGraphList objects +func (client *ObjectGraphListClient) GetAll(options ...session.ApiOptionsParams) ([]*models.ObjectGraphList, error) { + var plist []*models.ObjectGraphList + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing ObjectGraphList by uuid +func (client *ObjectGraphListClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.ObjectGraphList, error) { + var obj *models.ObjectGraphList + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing ObjectGraphList by name +func (client *ObjectGraphListClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.ObjectGraphList, error) { + var obj *models.ObjectGraphList + err := client.aviSession.GetObjectByName("objectgraphlist", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing ObjectGraphList by filters like name, cloud, tenant +// Api creates ObjectGraphList object with every call. +func (client *ObjectGraphListClient) GetObject(options ...session.ApiOptionsParams) (*models.ObjectGraphList, error) { + var obj *models.ObjectGraphList + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("objectgraphlist", newOptions...) + return obj, err +} + +// Create a new ObjectGraphList object +func (client *ObjectGraphListClient) Create(obj *models.ObjectGraphList, options ...session.ApiOptionsParams) (*models.ObjectGraphList, error) { + var robj *models.ObjectGraphList + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing ObjectGraphList object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.ObjectGraphList +// or it should be json compatible of form map[string]interface{} +func (client *ObjectGraphListClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.ObjectGraphList, error) { + var robj *models.ObjectGraphList + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing ObjectGraphList object with a given UUID +func (client *ObjectGraphListClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *ObjectGraphListClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/poolinventoryserverlist_client.go b/go/clients/poolinventoryserverlist_client.go new file mode 100644 index 0000000000..c5ad0970ac --- /dev/null +++ b/go/clients/poolinventoryserverlist_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// PoolInventoryServerListClient is a client for avi PoolInventoryServerList resource +type PoolInventoryServerListClient struct { + aviSession *session.AviSession +} + +// NewPoolInventoryServerListClient creates a new client for PoolInventoryServerList resource +func NewPoolInventoryServerListClient(aviSession *session.AviSession) *PoolInventoryServerListClient { + return &PoolInventoryServerListClient{aviSession: aviSession} +} + +func (client *PoolInventoryServerListClient) getAPIPath(uuid string) string { + path := "api/poolinventoryserverlist" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of PoolInventoryServerList objects +func (client *PoolInventoryServerListClient) GetAll(options ...session.ApiOptionsParams) ([]*models.PoolInventoryServerList, error) { + var plist []*models.PoolInventoryServerList + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing PoolInventoryServerList by uuid +func (client *PoolInventoryServerListClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.PoolInventoryServerList, error) { + var obj *models.PoolInventoryServerList + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing PoolInventoryServerList by name +func (client *PoolInventoryServerListClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.PoolInventoryServerList, error) { + var obj *models.PoolInventoryServerList + err := client.aviSession.GetObjectByName("poolinventoryserverlist", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing PoolInventoryServerList by filters like name, cloud, tenant +// Api creates PoolInventoryServerList object with every call. +func (client *PoolInventoryServerListClient) GetObject(options ...session.ApiOptionsParams) (*models.PoolInventoryServerList, error) { + var obj *models.PoolInventoryServerList + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("poolinventoryserverlist", newOptions...) + return obj, err +} + +// Create a new PoolInventoryServerList object +func (client *PoolInventoryServerListClient) Create(obj *models.PoolInventoryServerList, options ...session.ApiOptionsParams) (*models.PoolInventoryServerList, error) { + var robj *models.PoolInventoryServerList + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing PoolInventoryServerList object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.PoolInventoryServerList +// or it should be json compatible of form map[string]interface{} +func (client *PoolInventoryServerListClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.PoolInventoryServerList, error) { + var robj *models.PoolInventoryServerList + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing PoolInventoryServerList object with a given UUID +func (client *PoolInventoryServerListClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *PoolInventoryServerListClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/refreshsessionresponse_client.go b/go/clients/refreshsessionresponse_client.go new file mode 100644 index 0000000000..d7bc54ae76 --- /dev/null +++ b/go/clients/refreshsessionresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// RefreshSessionResponseClient is a client for avi RefreshSessionResponse resource +type RefreshSessionResponseClient struct { + aviSession *session.AviSession +} + +// NewRefreshSessionResponseClient creates a new client for RefreshSessionResponse resource +func NewRefreshSessionResponseClient(aviSession *session.AviSession) *RefreshSessionResponseClient { + return &RefreshSessionResponseClient{aviSession: aviSession} +} + +func (client *RefreshSessionResponseClient) getAPIPath(uuid string) string { + path := "api/refreshsessionresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of RefreshSessionResponse objects +func (client *RefreshSessionResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.RefreshSessionResponse, error) { + var plist []*models.RefreshSessionResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing RefreshSessionResponse by uuid +func (client *RefreshSessionResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.RefreshSessionResponse, error) { + var obj *models.RefreshSessionResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing RefreshSessionResponse by name +func (client *RefreshSessionResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.RefreshSessionResponse, error) { + var obj *models.RefreshSessionResponse + err := client.aviSession.GetObjectByName("refreshsessionresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing RefreshSessionResponse by filters like name, cloud, tenant +// Api creates RefreshSessionResponse object with every call. +func (client *RefreshSessionResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.RefreshSessionResponse, error) { + var obj *models.RefreshSessionResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("refreshsessionresponse", newOptions...) + return obj, err +} + +// Create a new RefreshSessionResponse object +func (client *RefreshSessionResponseClient) Create(obj *models.RefreshSessionResponse, options ...session.ApiOptionsParams) (*models.RefreshSessionResponse, error) { + var robj *models.RefreshSessionResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing RefreshSessionResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.RefreshSessionResponse +// or it should be json compatible of form map[string]interface{} +func (client *RefreshSessionResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.RefreshSessionResponse, error) { + var robj *models.RefreshSessionResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing RefreshSessionResponse object with a given UUID +func (client *RefreshSessionResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *RefreshSessionResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/segroupresumeparams_client.go b/go/clients/segroupresumeparams_client.go new file mode 100644 index 0000000000..3efc98e46d --- /dev/null +++ b/go/clients/segroupresumeparams_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SeGroupResumeParamsClient is a client for avi SeGroupResumeParams resource +type SeGroupResumeParamsClient struct { + aviSession *session.AviSession +} + +// NewSeGroupResumeParamsClient creates a new client for SeGroupResumeParams resource +func NewSeGroupResumeParamsClient(aviSession *session.AviSession) *SeGroupResumeParamsClient { + return &SeGroupResumeParamsClient{aviSession: aviSession} +} + +func (client *SeGroupResumeParamsClient) getAPIPath(uuid string) string { + path := "api/segroupresumeparams" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SeGroupResumeParams objects +func (client *SeGroupResumeParamsClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SeGroupResumeParams, error) { + var plist []*models.SeGroupResumeParams + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SeGroupResumeParams by uuid +func (client *SeGroupResumeParamsClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SeGroupResumeParams, error) { + var obj *models.SeGroupResumeParams + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SeGroupResumeParams by name +func (client *SeGroupResumeParamsClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SeGroupResumeParams, error) { + var obj *models.SeGroupResumeParams + err := client.aviSession.GetObjectByName("segroupresumeparams", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SeGroupResumeParams by filters like name, cloud, tenant +// Api creates SeGroupResumeParams object with every call. +func (client *SeGroupResumeParamsClient) GetObject(options ...session.ApiOptionsParams) (*models.SeGroupResumeParams, error) { + var obj *models.SeGroupResumeParams + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("segroupresumeparams", newOptions...) + return obj, err +} + +// Create a new SeGroupResumeParams object +func (client *SeGroupResumeParamsClient) Create(obj *models.SeGroupResumeParams, options ...session.ApiOptionsParams) (*models.SeGroupResumeParams, error) { + var robj *models.SeGroupResumeParams + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SeGroupResumeParams object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SeGroupResumeParams +// or it should be json compatible of form map[string]interface{} +func (client *SeGroupResumeParamsClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SeGroupResumeParams, error) { + var robj *models.SeGroupResumeParams + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SeGroupResumeParams object with a given UUID +func (client *SeGroupResumeParamsClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SeGroupResumeParamsClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/segroupversion_client.go b/go/clients/segroupversion_client.go new file mode 100644 index 0000000000..173fe8bc90 --- /dev/null +++ b/go/clients/segroupversion_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SeGroupVersionClient is a client for avi SeGroupVersion resource +type SeGroupVersionClient struct { + aviSession *session.AviSession +} + +// NewSeGroupVersionClient creates a new client for SeGroupVersion resource +func NewSeGroupVersionClient(aviSession *session.AviSession) *SeGroupVersionClient { + return &SeGroupVersionClient{aviSession: aviSession} +} + +func (client *SeGroupVersionClient) getAPIPath(uuid string) string { + path := "api/segroupversion" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SeGroupVersion objects +func (client *SeGroupVersionClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SeGroupVersion, error) { + var plist []*models.SeGroupVersion + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SeGroupVersion by uuid +func (client *SeGroupVersionClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SeGroupVersion, error) { + var obj *models.SeGroupVersion + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SeGroupVersion by name +func (client *SeGroupVersionClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SeGroupVersion, error) { + var obj *models.SeGroupVersion + err := client.aviSession.GetObjectByName("segroupversion", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SeGroupVersion by filters like name, cloud, tenant +// Api creates SeGroupVersion object with every call. +func (client *SeGroupVersionClient) GetObject(options ...session.ApiOptionsParams) (*models.SeGroupVersion, error) { + var obj *models.SeGroupVersion + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("segroupversion", newOptions...) + return obj, err +} + +// Create a new SeGroupVersion object +func (client *SeGroupVersionClient) Create(obj *models.SeGroupVersion, options ...session.ApiOptionsParams) (*models.SeGroupVersion, error) { + var robj *models.SeGroupVersion + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SeGroupVersion object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SeGroupVersion +// or it should be json compatible of form map[string]interface{} +func (client *SeGroupVersionClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SeGroupVersion, error) { + var robj *models.SeGroupVersion + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SeGroupVersion object with a given UUID +func (client *SeGroupVersionClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SeGroupVersionClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/seversion_client.go b/go/clients/seversion_client.go new file mode 100644 index 0000000000..bdcdefb0f4 --- /dev/null +++ b/go/clients/seversion_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SeVersionClient is a client for avi SeVersion resource +type SeVersionClient struct { + aviSession *session.AviSession +} + +// NewSeVersionClient creates a new client for SeVersion resource +func NewSeVersionClient(aviSession *session.AviSession) *SeVersionClient { + return &SeVersionClient{aviSession: aviSession} +} + +func (client *SeVersionClient) getAPIPath(uuid string) string { + path := "api/seversion" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SeVersion objects +func (client *SeVersionClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SeVersion, error) { + var plist []*models.SeVersion + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SeVersion by uuid +func (client *SeVersionClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SeVersion, error) { + var obj *models.SeVersion + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SeVersion by name +func (client *SeVersionClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SeVersion, error) { + var obj *models.SeVersion + err := client.aviSession.GetObjectByName("seversion", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SeVersion by filters like name, cloud, tenant +// Api creates SeVersion object with every call. +func (client *SeVersionClient) GetObject(options ...session.ApiOptionsParams) (*models.SeVersion, error) { + var obj *models.SeVersion + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("seversion", newOptions...) + return obj, err +} + +// Create a new SeVersion object +func (client *SeVersionClient) Create(obj *models.SeVersion, options ...session.ApiOptionsParams) (*models.SeVersion, error) { + var robj *models.SeVersion + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SeVersion object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SeVersion +// or it should be json compatible of form map[string]interface{} +func (client *SeVersionClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SeVersion, error) { + var robj *models.SeVersion + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SeVersion object with a given UUID +func (client *SeVersionClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SeVersionClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/switchtotenantresponse_client.go b/go/clients/switchtotenantresponse_client.go new file mode 100644 index 0000000000..429fa9dd8c --- /dev/null +++ b/go/clients/switchtotenantresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SwitchToTenantResponseClient is a client for avi SwitchToTenantResponse resource +type SwitchToTenantResponseClient struct { + aviSession *session.AviSession +} + +// NewSwitchToTenantResponseClient creates a new client for SwitchToTenantResponse resource +func NewSwitchToTenantResponseClient(aviSession *session.AviSession) *SwitchToTenantResponseClient { + return &SwitchToTenantResponseClient{aviSession: aviSession} +} + +func (client *SwitchToTenantResponseClient) getAPIPath(uuid string) string { + path := "api/switchtotenantresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SwitchToTenantResponse objects +func (client *SwitchToTenantResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SwitchToTenantResponse, error) { + var plist []*models.SwitchToTenantResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SwitchToTenantResponse by uuid +func (client *SwitchToTenantResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SwitchToTenantResponse, error) { + var obj *models.SwitchToTenantResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SwitchToTenantResponse by name +func (client *SwitchToTenantResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SwitchToTenantResponse, error) { + var obj *models.SwitchToTenantResponse + err := client.aviSession.GetObjectByName("switchtotenantresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SwitchToTenantResponse by filters like name, cloud, tenant +// Api creates SwitchToTenantResponse object with every call. +func (client *SwitchToTenantResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.SwitchToTenantResponse, error) { + var obj *models.SwitchToTenantResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("switchtotenantresponse", newOptions...) + return obj, err +} + +// Create a new SwitchToTenantResponse object +func (client *SwitchToTenantResponseClient) Create(obj *models.SwitchToTenantResponse, options ...session.ApiOptionsParams) (*models.SwitchToTenantResponse, error) { + var robj *models.SwitchToTenantResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SwitchToTenantResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SwitchToTenantResponse +// or it should be json compatible of form map[string]interface{} +func (client *SwitchToTenantResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SwitchToTenantResponse, error) { + var robj *models.SwitchToTenantResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SwitchToTenantResponse object with a given UUID +func (client *SwitchToTenantResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SwitchToTenantResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/systemconfigurationcompliancemode_client.go b/go/clients/systemconfigurationcompliancemode_client.go new file mode 100644 index 0000000000..ea2b3665b0 --- /dev/null +++ b/go/clients/systemconfigurationcompliancemode_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SystemConfigurationComplianceModeClient is a client for avi SystemConfigurationComplianceMode resource +type SystemConfigurationComplianceModeClient struct { + aviSession *session.AviSession +} + +// NewSystemConfigurationComplianceModeClient creates a new client for SystemConfigurationComplianceMode resource +func NewSystemConfigurationComplianceModeClient(aviSession *session.AviSession) *SystemConfigurationComplianceModeClient { + return &SystemConfigurationComplianceModeClient{aviSession: aviSession} +} + +func (client *SystemConfigurationComplianceModeClient) getAPIPath(uuid string) string { + path := "api/systemconfigurationcompliancemode" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SystemConfigurationComplianceMode objects +func (client *SystemConfigurationComplianceModeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SystemConfigurationComplianceMode, error) { + var plist []*models.SystemConfigurationComplianceMode + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SystemConfigurationComplianceMode by uuid +func (client *SystemConfigurationComplianceModeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SystemConfigurationComplianceMode, error) { + var obj *models.SystemConfigurationComplianceMode + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SystemConfigurationComplianceMode by name +func (client *SystemConfigurationComplianceModeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SystemConfigurationComplianceMode, error) { + var obj *models.SystemConfigurationComplianceMode + err := client.aviSession.GetObjectByName("systemconfigurationcompliancemode", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SystemConfigurationComplianceMode by filters like name, cloud, tenant +// Api creates SystemConfigurationComplianceMode object with every call. +func (client *SystemConfigurationComplianceModeClient) GetObject(options ...session.ApiOptionsParams) (*models.SystemConfigurationComplianceMode, error) { + var obj *models.SystemConfigurationComplianceMode + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("systemconfigurationcompliancemode", newOptions...) + return obj, err +} + +// Create a new SystemConfigurationComplianceMode object +func (client *SystemConfigurationComplianceModeClient) Create(obj *models.SystemConfigurationComplianceMode, options ...session.ApiOptionsParams) (*models.SystemConfigurationComplianceMode, error) { + var robj *models.SystemConfigurationComplianceMode + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SystemConfigurationComplianceMode object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SystemConfigurationComplianceMode +// or it should be json compatible of form map[string]interface{} +func (client *SystemConfigurationComplianceModeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SystemConfigurationComplianceMode, error) { + var robj *models.SystemConfigurationComplianceMode + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SystemConfigurationComplianceMode object with a given UUID +func (client *SystemConfigurationComplianceModeClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SystemConfigurationComplianceModeClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/systemusertokencheckout_client.go b/go/clients/systemusertokencheckout_client.go new file mode 100644 index 0000000000..d31eb6686d --- /dev/null +++ b/go/clients/systemusertokencheckout_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// SystemUserTokenCheckoutClient is a client for avi SystemUserTokenCheckout resource +type SystemUserTokenCheckoutClient struct { + aviSession *session.AviSession +} + +// NewSystemUserTokenCheckoutClient creates a new client for SystemUserTokenCheckout resource +func NewSystemUserTokenCheckoutClient(aviSession *session.AviSession) *SystemUserTokenCheckoutClient { + return &SystemUserTokenCheckoutClient{aviSession: aviSession} +} + +func (client *SystemUserTokenCheckoutClient) getAPIPath(uuid string) string { + path := "api/systemusertokencheckout" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of SystemUserTokenCheckout objects +func (client *SystemUserTokenCheckoutClient) GetAll(options ...session.ApiOptionsParams) ([]*models.SystemUserTokenCheckout, error) { + var plist []*models.SystemUserTokenCheckout + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing SystemUserTokenCheckout by uuid +func (client *SystemUserTokenCheckoutClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.SystemUserTokenCheckout, error) { + var obj *models.SystemUserTokenCheckout + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing SystemUserTokenCheckout by name +func (client *SystemUserTokenCheckoutClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.SystemUserTokenCheckout, error) { + var obj *models.SystemUserTokenCheckout + err := client.aviSession.GetObjectByName("systemusertokencheckout", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing SystemUserTokenCheckout by filters like name, cloud, tenant +// Api creates SystemUserTokenCheckout object with every call. +func (client *SystemUserTokenCheckoutClient) GetObject(options ...session.ApiOptionsParams) (*models.SystemUserTokenCheckout, error) { + var obj *models.SystemUserTokenCheckout + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("systemusertokencheckout", newOptions...) + return obj, err +} + +// Create a new SystemUserTokenCheckout object +func (client *SystemUserTokenCheckoutClient) Create(obj *models.SystemUserTokenCheckout, options ...session.ApiOptionsParams) (*models.SystemUserTokenCheckout, error) { + var robj *models.SystemUserTokenCheckout + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing SystemUserTokenCheckout object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.SystemUserTokenCheckout +// or it should be json compatible of form map[string]interface{} +func (client *SystemUserTokenCheckoutClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.SystemUserTokenCheckout, error) { + var robj *models.SystemUserTokenCheckout + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing SystemUserTokenCheckout object with a given UUID +func (client *SystemUserTokenCheckoutClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *SystemUserTokenCheckoutClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/uierrorack_client.go b/go/clients/uierrorack_client.go new file mode 100644 index 0000000000..63af0d7b12 --- /dev/null +++ b/go/clients/uierrorack_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// UIErrorAckClient is a client for avi UIErrorAck resource +type UIErrorAckClient struct { + aviSession *session.AviSession +} + +// NewUIErrorAckClient creates a new client for UIErrorAck resource +func NewUIErrorAckClient(aviSession *session.AviSession) *UIErrorAckClient { + return &UIErrorAckClient{aviSession: aviSession} +} + +func (client *UIErrorAckClient) getAPIPath(uuid string) string { + path := "api/uierrorack" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of UIErrorAck objects +func (client *UIErrorAckClient) GetAll(options ...session.ApiOptionsParams) ([]*models.UIErrorAck, error) { + var plist []*models.UIErrorAck + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing UIErrorAck by uuid +func (client *UIErrorAckClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.UIErrorAck, error) { + var obj *models.UIErrorAck + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing UIErrorAck by name +func (client *UIErrorAckClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.UIErrorAck, error) { + var obj *models.UIErrorAck + err := client.aviSession.GetObjectByName("uierrorack", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing UIErrorAck by filters like name, cloud, tenant +// Api creates UIErrorAck object with every call. +func (client *UIErrorAckClient) GetObject(options ...session.ApiOptionsParams) (*models.UIErrorAck, error) { + var obj *models.UIErrorAck + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("uierrorack", newOptions...) + return obj, err +} + +// Create a new UIErrorAck object +func (client *UIErrorAckClient) Create(obj *models.UIErrorAck, options ...session.ApiOptionsParams) (*models.UIErrorAck, error) { + var robj *models.UIErrorAck + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing UIErrorAck object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.UIErrorAck +// or it should be json compatible of form map[string]interface{} +func (client *UIErrorAckClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.UIErrorAck, error) { + var robj *models.UIErrorAck + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing UIErrorAck object with a given UUID +func (client *UIErrorAckClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *UIErrorAckClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/userpreferences_client.go b/go/clients/userpreferences_client.go new file mode 100644 index 0000000000..9d6cd69725 --- /dev/null +++ b/go/clients/userpreferences_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// UserPreferencesClient is a client for avi UserPreferences resource +type UserPreferencesClient struct { + aviSession *session.AviSession +} + +// NewUserPreferencesClient creates a new client for UserPreferences resource +func NewUserPreferencesClient(aviSession *session.AviSession) *UserPreferencesClient { + return &UserPreferencesClient{aviSession: aviSession} +} + +func (client *UserPreferencesClient) getAPIPath(uuid string) string { + path := "api/userpreferences" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of UserPreferences objects +func (client *UserPreferencesClient) GetAll(options ...session.ApiOptionsParams) ([]*models.UserPreferences, error) { + var plist []*models.UserPreferences + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing UserPreferences by uuid +func (client *UserPreferencesClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.UserPreferences, error) { + var obj *models.UserPreferences + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing UserPreferences by name +func (client *UserPreferencesClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.UserPreferences, error) { + var obj *models.UserPreferences + err := client.aviSession.GetObjectByName("userpreferences", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing UserPreferences by filters like name, cloud, tenant +// Api creates UserPreferences object with every call. +func (client *UserPreferencesClient) GetObject(options ...session.ApiOptionsParams) (*models.UserPreferences, error) { + var obj *models.UserPreferences + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("userpreferences", newOptions...) + return obj, err +} + +// Create a new UserPreferences object +func (client *UserPreferencesClient) Create(obj *models.UserPreferences, options ...session.ApiOptionsParams) (*models.UserPreferences, error) { + var robj *models.UserPreferences + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing UserPreferences object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.UserPreferences +// or it should be json compatible of form map[string]interface{} +func (client *UserPreferencesClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.UserPreferences, error) { + var robj *models.UserPreferences + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing UserPreferences object with a given UUID +func (client *UserPreferencesClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *UserPreferencesClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/usertenantlistresponse_client.go b/go/clients/usertenantlistresponse_client.go new file mode 100644 index 0000000000..043a687aa3 --- /dev/null +++ b/go/clients/usertenantlistresponse_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// UserTenantListResponseClient is a client for avi UserTenantListResponse resource +type UserTenantListResponseClient struct { + aviSession *session.AviSession +} + +// NewUserTenantListResponseClient creates a new client for UserTenantListResponse resource +func NewUserTenantListResponseClient(aviSession *session.AviSession) *UserTenantListResponseClient { + return &UserTenantListResponseClient{aviSession: aviSession} +} + +func (client *UserTenantListResponseClient) getAPIPath(uuid string) string { + path := "api/usertenantlistresponse" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of UserTenantListResponse objects +func (client *UserTenantListResponseClient) GetAll(options ...session.ApiOptionsParams) ([]*models.UserTenantListResponse, error) { + var plist []*models.UserTenantListResponse + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing UserTenantListResponse by uuid +func (client *UserTenantListResponseClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.UserTenantListResponse, error) { + var obj *models.UserTenantListResponse + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing UserTenantListResponse by name +func (client *UserTenantListResponseClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.UserTenantListResponse, error) { + var obj *models.UserTenantListResponse + err := client.aviSession.GetObjectByName("usertenantlistresponse", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing UserTenantListResponse by filters like name, cloud, tenant +// Api creates UserTenantListResponse object with every call. +func (client *UserTenantListResponseClient) GetObject(options ...session.ApiOptionsParams) (*models.UserTenantListResponse, error) { + var obj *models.UserTenantListResponse + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("usertenantlistresponse", newOptions...) + return obj, err +} + +// Create a new UserTenantListResponse object +func (client *UserTenantListResponseClient) Create(obj *models.UserTenantListResponse, options ...session.ApiOptionsParams) (*models.UserTenantListResponse, error) { + var robj *models.UserTenantListResponse + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing UserTenantListResponse object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.UserTenantListResponse +// or it should be json compatible of form map[string]interface{} +func (client *UserTenantListResponseClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.UserTenantListResponse, error) { + var robj *models.UserTenantListResponse + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing UserTenantListResponse object with a given UUID +func (client *UserTenantListResponseClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *UserTenantListResponseClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/usertokencheckout_client.go b/go/clients/usertokencheckout_client.go new file mode 100644 index 0000000000..927e69c6f4 --- /dev/null +++ b/go/clients/usertokencheckout_client.go @@ -0,0 +1,95 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// UserTokenCheckoutClient is a client for avi UserTokenCheckout resource +type UserTokenCheckoutClient struct { + aviSession *session.AviSession +} + +// NewUserTokenCheckoutClient creates a new client for UserTokenCheckout resource +func NewUserTokenCheckoutClient(aviSession *session.AviSession) *UserTokenCheckoutClient { + return &UserTokenCheckoutClient{aviSession: aviSession} +} + +func (client *UserTokenCheckoutClient) getAPIPath(uuid string) string { + path := "api/usertokencheckout" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of UserTokenCheckout objects +func (client *UserTokenCheckoutClient) GetAll(options ...session.ApiOptionsParams) ([]*models.UserTokenCheckout, error) { + var plist []*models.UserTokenCheckout + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing UserTokenCheckout by uuid +func (client *UserTokenCheckoutClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.UserTokenCheckout, error) { + var obj *models.UserTokenCheckout + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing UserTokenCheckout by name +func (client *UserTokenCheckoutClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.UserTokenCheckout, error) { + var obj *models.UserTokenCheckout + err := client.aviSession.GetObjectByName("usertokencheckout", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing UserTokenCheckout by filters like name, cloud, tenant +// Api creates UserTokenCheckout object with every call. +func (client *UserTokenCheckoutClient) GetObject(options ...session.ApiOptionsParams) (*models.UserTokenCheckout, error) { + var obj *models.UserTokenCheckout + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("usertokencheckout", newOptions...) + return obj, err +} + +// Create a new UserTokenCheckout object +func (client *UserTokenCheckoutClient) Create(obj *models.UserTokenCheckout, options ...session.ApiOptionsParams) (*models.UserTokenCheckout, error) { + var robj *models.UserTokenCheckout + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Patch an existing UserTokenCheckout object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.UserTokenCheckout +// or it should be json compatible of form map[string]interface{} +func (client *UserTokenCheckoutClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.UserTokenCheckout, error) { + var robj *models.UserTokenCheckout + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing UserTokenCheckout object with a given UUID +func (client *UserTokenCheckoutClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// GetAviSession +func (client *UserTokenCheckoutClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/clients/vimgrvcenterruntime_client.go b/go/clients/vimgrvcenterruntime_client.go new file mode 100644 index 0000000000..28841601e0 --- /dev/null +++ b/go/clients/vimgrvcenterruntime_client.go @@ -0,0 +1,112 @@ +// Copyright 2019 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 + +package clients + +// This file is auto-generated. + +import ( + "github.com/vmware/alb-sdk/go/models" + "github.com/vmware/alb-sdk/go/session" +) + +// VIMgrVcenterRuntimeClient is a client for avi VIMgrVcenterRuntime resource +type VIMgrVcenterRuntimeClient struct { + aviSession *session.AviSession +} + +// NewVIMgrVcenterRuntimeClient creates a new client for VIMgrVcenterRuntime resource +func NewVIMgrVcenterRuntimeClient(aviSession *session.AviSession) *VIMgrVcenterRuntimeClient { + return &VIMgrVcenterRuntimeClient{aviSession: aviSession} +} + +func (client *VIMgrVcenterRuntimeClient) getAPIPath(uuid string) string { + path := "api/vimgrvcenterruntime" + if uuid != "" { + path += "/" + uuid + } + return path +} + +// GetAll is a collection API to get a list of VIMgrVcenterRuntime objects +func (client *VIMgrVcenterRuntimeClient) GetAll(options ...session.ApiOptionsParams) ([]*models.VIMgrVcenterRuntime, error) { + var plist []*models.VIMgrVcenterRuntime + err := client.aviSession.GetCollection(client.getAPIPath(""), &plist, options...) + return plist, err +} + +// Get an existing VIMgrVcenterRuntime by uuid +func (client *VIMgrVcenterRuntimeClient) Get(uuid string, options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var obj *models.VIMgrVcenterRuntime + err := client.aviSession.Get(client.getAPIPath(uuid), &obj, options...) + return obj, err +} + +// GetByName - Get an existing VIMgrVcenterRuntime by name +func (client *VIMgrVcenterRuntimeClient) GetByName(name string, options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var obj *models.VIMgrVcenterRuntime + err := client.aviSession.GetObjectByName("vimgrvcenterruntime", name, &obj, options...) + return obj, err +} + +// GetObject - Get an existing VIMgrVcenterRuntime by filters like name, cloud, tenant +// Api creates VIMgrVcenterRuntime object with every call. +func (client *VIMgrVcenterRuntimeClient) GetObject(options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var obj *models.VIMgrVcenterRuntime + newOptions := make([]session.ApiOptionsParams, len(options)+1) + for i, p := range options { + newOptions[i] = p + } + newOptions[len(options)] = session.SetResult(&obj) + err := client.aviSession.GetObject("vimgrvcenterruntime", newOptions...) + return obj, err +} + +// Create a new VIMgrVcenterRuntime object +func (client *VIMgrVcenterRuntimeClient) Create(obj *models.VIMgrVcenterRuntime, options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var robj *models.VIMgrVcenterRuntime + err := client.aviSession.Post(client.getAPIPath(""), obj, &robj, options...) + return robj, err +} + +// Update an existing VIMgrVcenterRuntime object +func (client *VIMgrVcenterRuntimeClient) Update(obj *models.VIMgrVcenterRuntime, options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var robj *models.VIMgrVcenterRuntime + path := client.getAPIPath(*obj.UUID) + err := client.aviSession.Put(path, obj, &robj, options...) + return robj, err +} + +// Patch an existing VIMgrVcenterRuntime object specified using uuid +// patchOp: Patch operation - add, replace, or delete +// patch: Patch payload should be compatible with the models.VIMgrVcenterRuntime +// or it should be json compatible of form map[string]interface{} +func (client *VIMgrVcenterRuntimeClient) Patch(uuid string, patch interface{}, patchOp string, options ...session.ApiOptionsParams) (*models.VIMgrVcenterRuntime, error) { + var robj *models.VIMgrVcenterRuntime + path := client.getAPIPath(uuid) + err := client.aviSession.Patch(path, patch, patchOp, &robj, options...) + return robj, err +} + +// Delete an existing VIMgrVcenterRuntime object with a given UUID +func (client *VIMgrVcenterRuntimeClient) Delete(uuid string, options ...session.ApiOptionsParams) error { + if len(options) == 0 { + return client.aviSession.Delete(client.getAPIPath(uuid)) + } else { + return client.aviSession.DeleteObject(client.getAPIPath(uuid), options...) + } +} + +// DeleteByName - Delete an existing VIMgrVcenterRuntime object with a given name +func (client *VIMgrVcenterRuntimeClient) DeleteByName(name string, options ...session.ApiOptionsParams) error { + res, err := client.GetByName(name, options...) + if err != nil { + return err + } + return client.Delete(*res.UUID, options...) +} + +// GetAviSession +func (client *VIMgrVcenterRuntimeClient) GetAviSession() *session.AviSession { + return client.aviSession +} diff --git a/go/models/a_l_b_services_asset_response.go b/go/models/a_l_b_services_asset_response.go new file mode 100644 index 0000000000..b1c3eac08b --- /dev/null +++ b/go/models/a_l_b_services_asset_response.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ALBServicesAssetResponse a l b services asset response +// swagger:model ALBServicesAssetResponse +type ALBServicesAssetResponse struct { + + // Asset contact information returned by cloud. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ContactInfo *ALBServicesUser `json:"contact_info,omitempty"` + + // Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Error *Error `json:"error,omitempty"` + + // Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ID *string `json:"id,omitempty"` + + // Account details to which asset is registered in the cloud. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ManagedAccount *ALBServicesAccount `json:"managed_account,omitempty"` + + // Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StatusCode *uint32 `json:"status_code,omitempty"` +} diff --git a/go/models/a_l_b_services_file_download_metadata.go b/go/models/a_l_b_services_file_download_metadata.go new file mode 100644 index 0000000000..25b83d9a81 --- /dev/null +++ b/go/models/a_l_b_services_file_download_metadata.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ALBServicesFileDownloadMetadata a l b services file download metadata +// swagger:model ALBServicesFileDownloadMetadata +type ALBServicesFileDownloadMetadata any diff --git a/go/models/a_w_s_login.go b/go/models/a_w_s_login.go new file mode 100644 index 0000000000..0dedd443a8 --- /dev/null +++ b/go/models/a_w_s_login.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AWSLogin a w s login +// swagger:model AWSLogin +type AWSLogin struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AccessKeyID *string `json:"access_key_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IamAssumeRole *string `json:"iam_assume_role,omitempty"` + + // AWS region. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Region *string `json:"region,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SecretAccessKey *string `json:"secret_access_key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UseIamRoles *bool `json:"use_iam_roles,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VpcID *string `json:"vpc_id,omitempty"` +} diff --git a/go/models/alert_count.go b/go/models/alert_count.go new file mode 100644 index 0000000000..e065518dd5 --- /dev/null +++ b/go/models/alert_count.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AlertCount alert count +// swagger:model AlertCount +type AlertCount struct { + + // Number of time buckets returned. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Count *uint32 `json:"count,omitempty"` + + // One entry per time bucket, ordered per the sort query param. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Result []*AlertCountEntry `json:"result,omitempty"` +} diff --git a/go/models/alert_count_entry.go b/go/models/alert_count_entry.go new file mode 100644 index 0000000000..773a50a8bf --- /dev/null +++ b/go/models/alert_count_entry.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AlertCountEntry alert count entry +// swagger:model AlertCountEntry +type AlertCountEntry struct { + + // ISO8601 timestamp of the bucket end. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + End *string `json:"end,omitempty"` + + // ISO8601 timestamp of the bucket start (bucket end minus step seconds). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Start *string `json:"start,omitempty"` + + // ISO8601 timestamp of the bucket end (same value as end). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Timestamp *string `json:"timestamp,omitempty"` + + // Number of alerts counted in this bucket. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *uint32 `json:"value,omitempty"` +} diff --git a/go/models/api_c_configuration.go b/go/models/api_c_configuration.go new file mode 100644 index 0000000000..ed1a2598a9 --- /dev/null +++ b/go/models/api_c_configuration.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// APICConfiguration API c configuration +// swagger:model APICConfiguration +type APICConfiguration any diff --git a/go/models/apic_agent_bridge_domain_vrf_change.go b/go/models/apic_agent_bridge_domain_vrf_change.go new file mode 100644 index 0000000000..cc0c7e3fb1 --- /dev/null +++ b/go/models/apic_agent_bridge_domain_vrf_change.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ApicAgentBridgeDomainVrfChange apic agent bridge domain vrf change +// swagger:model ApicAgentBridgeDomainVrfChange +type ApicAgentBridgeDomainVrfChange any diff --git a/go/models/apic_agent_generic_event_details.go b/go/models/apic_agent_generic_event_details.go new file mode 100644 index 0000000000..2fb5034f34 --- /dev/null +++ b/go/models/apic_agent_generic_event_details.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ApicAgentGenericEventDetails apic agent generic event details +// swagger:model ApicAgentGenericEventDetails +type ApicAgentGenericEventDetails any diff --git a/go/models/apic_agent_vs_network_error.go b/go/models/apic_agent_vs_network_error.go new file mode 100644 index 0000000000..fd5082a441 --- /dev/null +++ b/go/models/apic_agent_vs_network_error.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ApicAgentVsNetworkError apic agent vs network error +// swagger:model ApicAgentVsNetworkError +type ApicAgentVsNetworkError any diff --git a/go/models/app_learning_params.go b/go/models/app_learning_params.go new file mode 100644 index 0000000000..0f3fb89013 --- /dev/null +++ b/go/models/app_learning_params.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AppLearningParams app learning params +// swagger:model AppLearningParams +type AppLearningParams any diff --git a/go/models/auth_token_create_response.go b/go/models/auth_token_create_response.go new file mode 100644 index 0000000000..5cc3276453 --- /dev/null +++ b/go/models/auth_token_create_response.go @@ -0,0 +1,30 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AuthTokenCreateResponse auth token create response +// swagger:model AuthTokenCreateResponse +type AuthTokenCreateResponse struct { + + // UNIX time since epoch in microseconds. Units(MICROSECONDS). + // Read Only: true + LastModified *string `json:"_last_modified,omitempty"` + + // ISO8601 expiry timestamp of the token. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpiresAt *string `json:"expires_at,omitempty"` + + // True if the token has no expiry and is treated as single-use (valid for one hour from creation). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SingleUse *bool `json:"single_use,omitempty"` + + // The generated token key (secret). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Token *string `json:"token,omitempty"` + + // url + // Read Only: true + URL *string `json:"url,omitempty"` + + // UUID of the newly created auth token. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/auth_token_create_response_api_response.go b/go/models/auth_token_create_response_api_response.go new file mode 100644 index 0000000000..d2950a8350 --- /dev/null +++ b/go/models/auth_token_create_response_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// AuthTokenCreateResponseAPIResponse auth token create response Api response +// swagger:model AuthTokenCreateResponseApiResponse +type AuthTokenCreateResponseAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*AuthTokenCreateResponse `json:"results,omitempty"` +} diff --git a/go/models/burst_resource.go b/go/models/burst_resource.go new file mode 100644 index 0000000000..822c1afac6 --- /dev/null +++ b/go/models/burst_resource.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// BurstResource burst resource +// swagger:model BurstResource +type BurstResource struct { + + // License ID against which this burst has been accounted. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AccountedLicenseID *string `json:"accounted_license_id,omitempty"` + + // Time UTC of the last alert created for this burst resource. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LastAlertTime *string `json:"last_alert_time,omitempty"` + + // Enum options - ENTERPRISE_16, ENTERPRISE, ENTERPRISE_18, BASIC, ESSENTIALS, ENTERPRISE_WITH_CLOUD_SERVICES. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseTier *string `json:"license_tier,omitempty"` + + // Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeCookie *string `json:"se_cookie,omitempty"` + + // Service Engine which triggered the burst license usage. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeUUID *string `json:"se_uuid,omitempty"` + + // Time UTC when the burst license was put in use. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StartTime *string `json:"start_time,omitempty"` +} diff --git a/go/models/cc_add_vnics_req.go b/go/models/cc_add_vnics_req.go new file mode 100644 index 0000000000..ca7408c9db --- /dev/null +++ b/go/models/cc_add_vnics_req.go @@ -0,0 +1,26 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CcAddVnicsReq cc add vnics req +// swagger:model cc_add_vnics_req +type CcAddVnicsReq struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CcID *string `json:"cc_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cookie *string `json:"cookie,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SeVMUUID *string `json:"se_vm_uuid"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Vnics []*CCVnicInfo `json:"vnics,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VsUuids []string `json:"vs_uuids,omitempty"` +} diff --git a/go/models/cc_create_se_req.go b/go/models/cc_create_se_req.go new file mode 100644 index 0000000000..8bdd2d6b6e --- /dev/null +++ b/go/models/cc_create_se_req.go @@ -0,0 +1,82 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CcCreateSeReq cc create se req +// swagger:model cc_create_se_req +type CcCreateSeReq struct { + + // OS single AZ for placement. AWS the AZ is determined by the VIP subnet. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AvailabilityZone *string `json:"availability_zone,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CcID *string `json:"cc_id,omitempty"` + + // IPv4 address of the controller. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ControllerIp4Addr *string `json:"controller_ip4_addr,omitempty"` + + // IPv6 address of the controller. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ControllerIp6Addr *string `json:"controller_ip6_addr,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ControllerIPAddr *string `json:"controller_ip_addr"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Cookie *string `json:"cookie"` + + // Data networks. Field introduced in 31.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DataNetworks []string `json:"data_networks,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DiskGb *uint32 `json:"disk_gb,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DiskOffering *string `json:"disk_offering,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Flavor *string `json:"flavor,omitempty"` + + // Host information sent from resource manager to the cloud connector. Field introduced in 22.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + HostList []*CcHostInfo `json:"host_list,omitempty"` + + // Enum options - DEFAULT, VMWARE_ESX, KVM, VMWARE_VSAN, XEN. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hypervisor *string `json:"hypervisor,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtNetworkName *string `json:"mgmt_network_name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtNetworkUUID *string `json:"mgmt_network_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Networks []string `json:"networks,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + RAM *uint32 `json:"ram,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SegroupUUID *string `json:"segroup_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ServiceOffering *string `json:"service_offering,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantUUID *string `json:"tenant_uuid,omitempty"` + + // Folder in which the VM is created. Field introduced in 22.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterVMFolder *string `json:"vcenter_vm_folder,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Vcpus *uint32 `json:"vcpus,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VsUuids []string `json:"vs_uuids,omitempty"` +} diff --git a/go/models/cc_del_vnics_req.go b/go/models/cc_del_vnics_req.go new file mode 100644 index 0000000000..75160d16b9 --- /dev/null +++ b/go/models/cc_del_vnics_req.go @@ -0,0 +1,23 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CcDelVnicsReq cc del vnics req +// swagger:model cc_del_vnics_req +type CcDelVnicsReq struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CcID *string `json:"cc_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cookie *string `json:"cookie,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MacAddrs []string `json:"mac_addrs,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SeVMUUID *string `json:"se_vm_uuid"` +} diff --git a/go/models/cc_delete_se_req.go b/go/models/cc_delete_se_req.go new file mode 100644 index 0000000000..d56515c796 --- /dev/null +++ b/go/models/cc_delete_se_req.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CcDeleteSeReq cc delete se req +// swagger:model cc_delete_se_req +type CcDeleteSeReq struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CcID *string `json:"cc_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SeVMUUID *string `json:"se_vm_uuid"` +} diff --git a/go/models/cc_host_info.go b/go/models/cc_host_info.go new file mode 100644 index 0000000000..a97454ea0a --- /dev/null +++ b/go/models/cc_host_info.go @@ -0,0 +1,26 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CcHostInfo cc host info +// swagger:model cc_host_info +type CcHostInfo struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Mor *string `json:"mor,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeGrpLowPriHost *bool `json:"se_grp_low_pri_host,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VsLowPriHost *bool `json:"vs_low_pri_host,omitempty"` +} diff --git a/go/models/check_password_response.go b/go/models/check_password_response.go new file mode 100644 index 0000000000..9228109922 --- /dev/null +++ b/go/models/check_password_response.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CheckPasswordResponse check password response +// swagger:model CheckPasswordResponse +type CheckPasswordResponse struct { + + // True if the supplied username/password (or username/token) pair authenticated successfully. On failure, a generic 'Invalid controller credentials' error is returned instead of this body, deliberately indistinguishable for wrong-password, unknown-user, and locked-out-account cases. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Authenticate *bool `json:"authenticate,omitempty"` +} diff --git a/go/models/cloud_license_subscribe_result.go b/go/models/cloud_license_subscribe_result.go new file mode 100644 index 0000000000..354caf434a --- /dev/null +++ b/go/models/cloud_license_subscribe_result.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CloudLicenseSubscribeResult cloud license subscribe result +// swagger:model CloudLicenseSubscribeResult +type CloudLicenseSubscribeResult struct { + + // Human-readable message from the license manager's SubscribeCloudLicense/UnsubscribeCloudLicense RPC. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Message *string `json:"message,omitempty"` + + // Literal 'success' on success, error responses instead return {'error' ...} at a non-2xx HTTP status. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Status *string `json:"status"` +} diff --git a/go/models/cluster.go b/go/models/cluster.go new file mode 100644 index 0000000000..2f0991a084 --- /dev/null +++ b/go/models/cluster.go @@ -0,0 +1,40 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// Cluster cluster +// swagger:model Cluster +type Cluster struct { + + // UNIX time since epoch in microseconds. Units(MICROSECONDS). + // Read Only: true + LastModified *string `json:"_last_modified,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Minimum of 1 items required. Maximum of 7 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Nodes []*ClusterNode `json:"nodes,omitempty"` + + // Re-join cluster nodes automatically in the event one of the node is reset to factory. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + RejoinNodesAutomatically *bool `json:"rejoin_nodes_automatically,omitempty"` + + // It is a reference to an object of type Tenant. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` + + // url + // Read Only: true + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // A V4 virtual IP address for the Cluster that always points to the V4 IP of the leader node in Cluster. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VirtualIP *IPAddr `json:"virtual_ip,omitempty"` + + // A V6 virtual IP address for the Cluster that always points to the V6 IP of the leader node in Cluster. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VirtualIp6 *IPAddr `json:"virtual_ip6,omitempty"` +} diff --git a/go/models/cluster_api_response.go b/go/models/cluster_api_response.go new file mode 100644 index 0000000000..cf3885af0c --- /dev/null +++ b/go/models/cluster_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ClusterAPIResponse cluster Api response +// swagger:model ClusterApiResponse +type ClusterAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*Cluster `json:"results,omitempty"` +} diff --git a/go/models/cluster_version_info.go b/go/models/cluster_version_info.go new file mode 100644 index 0000000000..849702d20f --- /dev/null +++ b/go/models/cluster_version_info.go @@ -0,0 +1,38 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ClusterVersionInfo cluster version info +// swagger:model ClusterVersionInfo +type ClusterVersionInfo struct { + + // Controller build number. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Build *uint32 `json:"build"` + + // Build timestamp of the controller image. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Date *string `json:"date"` + + // Minimum controller version this build can upgrade from. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + MinVersion *string `json:"min_version"` + + // Product identifier for this controller build. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Product *string `json:"product"` + + // Human-readable product name. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ProductName *string `json:"product_name"` + + // Full build tag combining version, build number and timestamp. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Tag *string `json:"tag"` + + // Controller release version. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Version *string `json:"version"` +} diff --git a/go/models/cluster_warm_reboot_event.go b/go/models/cluster_warm_reboot_event.go new file mode 100644 index 0000000000..8f311b15eb --- /dev/null +++ b/go/models/cluster_warm_reboot_event.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ClusterWarmRebootEvent cluster warm reboot event +// swagger:model ClusterWarmRebootEvent +type ClusterWarmRebootEvent any diff --git a/go/models/clustify_info.go b/go/models/clustify_info.go new file mode 100644 index 0000000000..955fa39ca3 --- /dev/null +++ b/go/models/clustify_info.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ClustifyInfo clustify info +// swagger:model ClustifyInfo +type ClustifyInfo struct { + + // node cpu count. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CPUCount *int32 `json:"cpu_count,omitempty"` + + // node disk size. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Disk *float32 `json:"disk,omitempty"` + + // node fips mode. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipsMode *string `json:"fips_mode,omitempty"` + + // node ip mode. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IPMode *string `json:"ip_mode,omitempty"` + + // node major version. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MajorVersion *string `json:"major_version,omitempty"` + + // node memory size. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Memory *float32 `json:"memory,omitempty"` + + // node patch version. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PatchVersion *string `json:"patch_version,omitempty"` +} diff --git a/go/models/config_export_bundle_info.go b/go/models/config_export_bundle_info.go new file mode 100644 index 0000000000..3fc0d59239 --- /dev/null +++ b/go/models/config_export_bundle_info.go @@ -0,0 +1,18 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ConfigExportBundleInfo config export bundle info +// swagger:model ConfigExportBundleInfo +type ConfigExportBundleInfo struct { + + // Relative URI to download the generated export bundle, e.g. api/configuration/export/download/. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + DownloadLink *string `json:"download_link"` + + // Human-readable UTC timestamp after which the download link expires. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + FileExpiry *string `json:"file_expiry"` +} diff --git a/go/models/config_pb_attributes.go b/go/models/config_pb_attributes.go new file mode 100644 index 0000000000..4ff2a7d003 --- /dev/null +++ b/go/models/config_pb_attributes.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ConfigPbAttributes config pb attributes +// swagger:model ConfigPbAttributes +type ConfigPbAttributes any diff --git a/go/models/controller_backup_scheduler_fault.go b/go/models/controller_backup_scheduler_fault.go new file mode 100644 index 0000000000..3b9f3f0f77 --- /dev/null +++ b/go/models/controller_backup_scheduler_fault.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerBackupSchedulerFault controller backup scheduler fault +// swagger:model ControllerBackupSchedulerFault +type ControllerBackupSchedulerFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + BackupSchedulerName *string `json:"backup_scheduler_name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *bool `json:"status,omitempty"` +} diff --git a/go/models/controller_banner_entry.go b/go/models/controller_banner_entry.go new file mode 100644 index 0000000000..dca404ec2e --- /dev/null +++ b/go/models/controller_banner_entry.go @@ -0,0 +1,26 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerBannerEntry controller banner entry +// swagger:model ControllerBannerEntry +type ControllerBannerEntry struct { + + // Human-readable fault description. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Description *string `json:"description"` + + // Fault identifier or name. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Originating fault category, e.g. LICENSE, CLUSTER, MIGRATION, BACKUP_SCHEDULER, SSLPROFILE, DEPRECATED_API_VERSION, SYSTEM_LIMITS, PORTAL_CONNECTOR. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Service *string `json:"service"` + + // Fault severity ERROR, WARN, or INFO. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Severity *string `json:"severity"` +} diff --git a/go/models/controller_banner_list.go b/go/models/controller_banner_list.go new file mode 100644 index 0000000000..3410d2d494 --- /dev/null +++ b/go/models/controller_banner_list.go @@ -0,0 +1,20 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerBannerList controller banner list +// swagger:model ControllerBannerList +type ControllerBannerList struct { + + // Total number of banner entries matching the filter. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // URL of the next page of results, present only when more results remain. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Next *string `json:"next,omitempty"` + + // Page of banner entries. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*ControllerBannerEntry `json:"results,omitempty"` +} diff --git a/go/models/controller_cluster_fault.go b/go/models/controller_cluster_fault.go new file mode 100644 index 0000000000..8117c09e93 --- /dev/null +++ b/go/models/controller_cluster_fault.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerClusterFault controller cluster fault +// swagger:model ControllerClusterFault +type ControllerClusterFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ClusterState *string `json:"cluster_state,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InactiveNodes []*ControllerInactiveNode `json:"inactive_nodes,omitempty"` +} diff --git a/go/models/controller_deprecated_api_fault.go b/go/models/controller_deprecated_api_fault.go new file mode 100644 index 0000000000..213c391987 --- /dev/null +++ b/go/models/controller_deprecated_api_fault.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerDeprecatedAPIFault controller deprecated Api fault +// swagger:model ControllerDeprecatedApiFault +type ControllerDeprecatedAPIFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` +} diff --git a/go/models/controller_inactive_node.go b/go/models/controller_inactive_node.go new file mode 100644 index 0000000000..52d63520e6 --- /dev/null +++ b/go/models/controller_inactive_node.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerInactiveNode controller inactive node +// swagger:model ControllerInactiveNode +type ControllerInactiveNode struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + State *string `json:"state,omitempty"` +} diff --git a/go/models/controller_inventory_faults.go b/go/models/controller_inventory_faults.go new file mode 100644 index 0000000000..98e39758c3 --- /dev/null +++ b/go/models/controller_inventory_faults.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerInventoryFaults controller inventory faults +// swagger:model ControllerInventoryFaults +type ControllerInventoryFaults struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + BackupSchedulerFaults []*ControllerBackupSchedulerFault `json:"backup_scheduler_faults,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ClusterFaults []*ControllerClusterFault `json:"cluster_faults,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DeprecatedAPIVersionFaults []*ControllerDeprecatedAPIFault `json:"deprecated_api_version_faults,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseFaults []*ControllerLicenseFault `json:"license_faults,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MigrationFaults []*ControllerMigrationFault `json:"migration_faults,omitempty"` + + // Each real JSON entry also carries one dynamic key per flagged SSLProfile name mapping to a list of blacklisted cipher-suite strings, those dynamic keys cannot be represented as static fields and are omitted here. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SslprofileFaults []*ControllerSslProfileFault `json:"sslprofile_faults,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SystemLimitsFaults []*ControllerSystemLimitsFault `json:"system_limits_faults,omitempty"` +} diff --git a/go/models/controller_inventory_response.go b/go/models/controller_inventory_response.go new file mode 100644 index 0000000000..1583abec0e --- /dev/null +++ b/go/models/controller_inventory_response.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerInventoryResponse controller inventory response +// swagger:model ControllerInventoryResponse +type ControllerInventoryResponse struct { + + // Number of fault categories present in results (0-7), not total fault count. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // Present fault categories, each list is only populated when the corresponding controller_faults flag is enabled and faults exist. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results *ControllerInventoryFaults `json:"results,omitempty"` +} diff --git a/go/models/controller_license.go b/go/models/controller_license.go new file mode 100644 index 0000000000..463ec282bf --- /dev/null +++ b/go/models/controller_license.go @@ -0,0 +1,78 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerLicense controller license +// swagger:model ControllerLicense +type ControllerLicense struct { + + // UNIX time since epoch in microseconds. Units(MICROSECONDS). + // Read Only: true + LastModified *string `json:"_last_modified,omitempty"` + + // List of active burst core license in use. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ActiveBurstResources []*BurstResource `json:"active_burst_resources,omitempty"` + + // Total number of Service Engine cores for burst core based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + BurstCores *uint32 `json:"burst_cores,omitempty"` + + // Number of Service Engine cores in non-container clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cores *uint32 `json:"cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CustomerName *string `json:"customer_name,omitempty"` + + // Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DisableEnforcement *bool `json:"disable_enforcement,omitempty"` + + // List of used or expired burst core licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpiredBurstResources []*BurstResource `json:"expired_burst_resources,omitempty"` + + // Flag used to track initialization. Field introduced in 20.1.2. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Initialized *bool `json:"initialized,omitempty"` + + // Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseID *string `json:"license_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseTier []string `json:"license_tier,omitempty"` + + // Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseTiers []*CumulativeLicense `json:"license_tiers,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Licenses []*SingleLicense `json:"licenses,omitempty"` + + // Number of Service Engines hosts in container clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MaxSes *uint32 `json:"max_ses,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Service Engine bandwidth limits for bandwidth based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeBandwidthLimits []*SEBandwidthLimit `json:"se_bandwidth_limits,omitempty"` + + // Number of vmware service cores after aggregating all other license types. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ServiceCores *float64 `json:"service_cores,omitempty"` + + // Number of physical cpu sockets across Service Engines in no access and linux server clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Sockets *uint32 `json:"sockets,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StartOn *string `json:"start_on,omitempty"` + + // Tenant uuid. Field introduced in 30.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantUUID *string `json:"tenant_uuid,omitempty"` + + // url + // Read Only: true + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ValidUntil *string `json:"valid_until,omitempty"` +} diff --git a/go/models/controller_license_api_response.go b/go/models/controller_license_api_response.go new file mode 100644 index 0000000000..8d873558e0 --- /dev/null +++ b/go/models/controller_license_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerLicenseAPIResponse controller license Api response +// swagger:model ControllerLicenseApiResponse +type ControllerLicenseAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*ControllerLicense `json:"results,omitempty"` +} diff --git a/go/models/controller_license_fault.go b/go/models/controller_license_fault.go new file mode 100644 index 0000000000..4fe043be46 --- /dev/null +++ b/go/models/controller_license_fault.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerLicenseFault controller license fault +// swagger:model ControllerLicenseFault +type ControllerLicenseFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // LICENSE_EXPIRED or LICENSE_EXPIRING. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *string `json:"status,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ValidUntil *string `json:"valid_until,omitempty"` +} diff --git a/go/models/controller_migration_fault.go b/go/models/controller_migration_fault.go new file mode 100644 index 0000000000..6ba1d26d3a --- /dev/null +++ b/go/models/controller_migration_fault.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerMigrationFault controller migration fault +// swagger:model ControllerMigrationFault +type ControllerMigrationFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MigrationName *string `json:"migration_name,omitempty"` +} diff --git a/go/models/controller_ssl_profile_fault.go b/go/models/controller_ssl_profile_fault.go new file mode 100644 index 0000000000..d93c10b4eb --- /dev/null +++ b/go/models/controller_ssl_profile_fault.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerSslProfileFault controller ssl profile fault +// swagger:model ControllerSslProfileFault +type ControllerSslProfileFault struct { + + // Only the fixed 'description' key is represented; the real payload also contains one additional key per flagged SSLProfile name mapping to a list of cipher strings, which is not representable here. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` +} diff --git a/go/models/controller_system_limits_fault.go b/go/models/controller_system_limits_fault.go new file mode 100644 index 0000000000..1afbd1d4fe --- /dev/null +++ b/go/models/controller_system_limits_fault.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerSystemLimitsFault controller system limits fault +// swagger:model ControllerSystemLimitsFault +type ControllerSystemLimitsFault struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Details []string `json:"details,omitempty"` +} diff --git a/go/models/controller_version.go b/go/models/controller_version.go new file mode 100644 index 0000000000..ffd38dc55d --- /dev/null +++ b/go/models/controller_version.go @@ -0,0 +1,24 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ControllerVersion controller version +// swagger:model ControllerVersion +type ControllerVersion struct { + + // Fips mode for Controller. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipsMode *bool `json:"fips_mode,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Patch level for controller. Field introduced in 17.2.2. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Patch *string `json:"patch,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Version *string `json:"version"` +} diff --git a/go/models/create_management_service_access_grant_req.go b/go/models/create_management_service_access_grant_req.go new file mode 100644 index 0000000000..445639d936 --- /dev/null +++ b/go/models/create_management_service_access_grant_req.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CreateManagementServiceAccessGrantReq create management service access grant req +// swagger:model CreateManagementServiceAccessGrantReq +type CreateManagementServiceAccessGrantReq struct { + + // Vcenter Cloud UUID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Management Service Access Grant payload. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementServiceAccessGrant *ManagementServiceAccessGrant `json:"management_service_access_grant"` + + // Namespace to create Management Service Access grant under. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Namespace *string `json:"namespace"` + + // VCenter host to be used for creating management service access grant. Only applicable to NSX-T Cloud. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterHost *string `json:"vcenter_host"` +} diff --git a/go/models/create_management_service_req.go b/go/models/create_management_service_req.go new file mode 100644 index 0000000000..69d7139d5b --- /dev/null +++ b/go/models/create_management_service_req.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CreateManagementServiceReq create management service req +// swagger:model CreateManagementServiceReq +type CreateManagementServiceReq struct { + + // VCenter Cloud UUID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Management Service payload. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementService *ManagementService `json:"management_service"` + + // Supervisor ID under which the Management Service will be created. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SupervisorID *string `json:"supervisor_id"` + + // VCenter host to be used to create management service access grant. Only applicable to NSX-T Cloud. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterHost *string `json:"vcenter_host"` +} diff --git a/go/models/cred_params.go b/go/models/cred_params.go new file mode 100644 index 0000000000..358b2d0ced --- /dev/null +++ b/go/models/cred_params.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CredParams cred params +// swagger:model CredParams +type CredParams struct { + + // Use Cloud settings. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Credentials to access VCenter or NSX-T manager. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CredentialsUUID *string `json:"credentials_uuid,omitempty"` + + // vCenter or NSX-T url. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Host *string `json:"host,omitempty"` + + // password. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Password *string `json:"password,omitempty"` + + // username. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Username *string `json:"username,omitempty"` +} diff --git a/go/models/cumulative_license.go b/go/models/cumulative_license.go new file mode 100644 index 0000000000..3fc60db7c6 --- /dev/null +++ b/go/models/cumulative_license.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// CumulativeLicense cumulative license +// swagger:model CumulativeLicense +type CumulativeLicense struct { + + // Total number of Service Engine cores for burst core based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + BurstCores *uint32 `json:"burst_cores,omitempty"` + + // Total number of Service Engine cores for core based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cores *uint32 `json:"cores,omitempty"` + + // Total number of Service Engines for host based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MaxSes *uint32 `json:"max_ses,omitempty"` + + // Service Engine bandwidth limits for bandwidth based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeBandwidthLimits []*SEBandwidthLimit `json:"se_bandwidth_limits,omitempty"` + + // Total number of Service Engine cores.. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ServiceCores *float64 `json:"service_cores,omitempty"` + + // Total number of Service Engine sockets for socket based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Sockets *uint32 `json:"sockets,omitempty"` + + // Specifies the licensed tier. Enum options - ENTERPRISE_16, ENTERPRISE, ENTERPRISE_18, BASIC, ESSENTIALS, ENTERPRISE_WITH_CLOUD_SERVICES. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TierType *string `json:"tier_type,omitempty"` +} diff --git a/go/models/default_values_augmentation.go b/go/models/default_values_augmentation.go new file mode 100644 index 0000000000..059cdfef6a --- /dev/null +++ b/go/models/default_values_augmentation.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DefaultValuesAugmentation default values augmentation +// swagger:model DefaultValuesAugmentation +type DefaultValuesAugmentation struct { + + // Keyed by lowercased object_model name, value is the list of system-default object UUIDs for that type. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Default map[string]DefaultValuesUUIDList `json:"default,omitempty"` + + // Keyed by lowercased object_model name, value is the list of REST URLs for that type's system-default objects. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DefaultRefs map[string]DefaultValuesURLList `json:"default_refs,omitempty"` +} diff --git a/go/models/default_values_augmentation_default_entry.go b/go/models/default_values_augmentation_default_entry.go new file mode 100644 index 0000000000..7ffb0b1f08 --- /dev/null +++ b/go/models/default_values_augmentation_default_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DefaultValuesAugmentationDefaultEntry default values augmentation default entry +// swagger:model DefaultValuesAugmentation.DefaultEntry +type DefaultValuesAugmentationDefaultEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *DefaultValuesUUIDList `json:"value,omitempty"` +} diff --git a/go/models/default_values_augmentation_default_refs_entry.go b/go/models/default_values_augmentation_default_refs_entry.go new file mode 100644 index 0000000000..1f80b4a5ff --- /dev/null +++ b/go/models/default_values_augmentation_default_refs_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DefaultValuesAugmentationDefaultRefsEntry default values augmentation default refs entry +// swagger:model DefaultValuesAugmentation.DefaultRefsEntry +type DefaultValuesAugmentationDefaultRefsEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *DefaultValuesURLList `json:"value,omitempty"` +} diff --git a/go/models/default_values_url_list.go b/go/models/default_values_url_list.go new file mode 100644 index 0000000000..f253156eca --- /dev/null +++ b/go/models/default_values_url_list.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DefaultValuesURLList default values Url list +// swagger:model DefaultValuesUrlList +type DefaultValuesURLList struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Urls []string `json:"urls,omitempty"` +} diff --git a/go/models/default_values_uuid_list.go b/go/models/default_values_uuid_list.go new file mode 100644 index 0000000000..4954b7e243 --- /dev/null +++ b/go/models/default_values_uuid_list.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DefaultValuesUUIDList default values Uuid list +// swagger:model DefaultValuesUuidList +type DefaultValuesUUIDList struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Uuids []string `json:"uuids,omitempty"` +} diff --git a/go/models/dns_domain.go b/go/models/dns_domain.go new file mode 100644 index 0000000000..0fe4881f48 --- /dev/null +++ b/go/models/dns_domain.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DNSDomain Dns domain +// swagger:model DnsDomain +type DNSDomain struct { + + // Service domain *string used for FQDN. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + DomainName *string `json:"domain_name"` + + // Domain name is available in private zone and/or public zone. Enum options - DOMAIN_DEFAULT, DOMAIN_PRIVATE, DOMAIN_PUBLIC, DOMAIN_PRIVATE_PUBLIC. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DomainType *string `json:"domain_type,omitempty"` +} diff --git a/go/models/dns_lookup_result.go b/go/models/dns_lookup_result.go new file mode 100644 index 0000000000..f144c0df53 --- /dev/null +++ b/go/models/dns_lookup_result.go @@ -0,0 +1,20 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DNSLookupResult Dns lookup result +// swagger:model DnsLookupResult +type DNSLookupResult struct { + + // Resolved IPv6 addresses. Absent if resolution failed, or if pool=true and the associated Cloud has resolve_fqdn_to_ipv6 disabled. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ip6s []string `json:"ip6s,omitempty"` + + // Resolved IPv4 addresses. Absent if resolution failed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ips []string `json:"ips,omitempty"` + + // The FQDN or IP that was looked up, echoed back. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Server *string `json:"server"` +} diff --git a/go/models/dns_rate_profile.go b/go/models/dns_rate_profile.go new file mode 100644 index 0000000000..84b57b57df --- /dev/null +++ b/go/models/dns_rate_profile.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// DNSRateProfile Dns rate profile +// swagger:model DnsRateProfile +type DNSRateProfile any diff --git a/go/models/error.go b/go/models/error.go new file mode 100644 index 0000000000..462bf3c8b7 --- /dev/null +++ b/go/models/error.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// Error error +// swagger:model Error +type Error struct { + + // Title of the error message. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Error *string `json:"error,omitempty"` + + // Possible reason for the occurence of error. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Reason *string `json:"reason,omitempty"` +} diff --git a/go/models/event_gen_params.go b/go/models/event_gen_params.go new file mode 100644 index 0000000000..8d31e06d35 --- /dev/null +++ b/go/models/event_gen_params.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// EventGenParams event gen params +// swagger:model EventGenParams +type EventGenParams struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cluster *string `json:"cluster,omitempty"` + + // Enum options - VINFRA_DISC_DC, VINFRA_DISC_HOST, VINFRA_DISC_CLUSTER, VINFRA_DISC_VM, VINFRA_DISC_NW, MGMT_NW_NAME_CHANGED, DISCOVERY_DATACENTER_DEL, VM_ADDED, VM_REMOVED, VINFRA_DISC_COMPLETE, VCENTER_ADDRESS_ERROR, SE_GROUP_CLUSTER_DEL, SE_GROUP_MGMT_NW_DEL, MGMT_NW_DEL, VCENTER_BAD_CREDENTIALS, ESX_HOST_UNREACHABLE, SERVER_DELETED, SE_GROUP_HOST_DEL, VINFRA_DISC_FAILURE, ESX_HOST_POWERED_DOWN, VCENTER_VERSION_NOT_SUPPORTED, VCENTER_CONNECTIVITY_FAIL, VCENTER_CONNECTIVITY_SUCCESS, VCENTER_ACCESS_SLOW, VCENTER_USER_ROLE_CHANGE, VCENTER_NETWQRK_OBJECT_LIMIT_REACHED, VCENTER_SE_TAGGING_FAIL, VCENTER_CLOUD_DELETE, VCENTER_QAT_CLUSTER_DRS_NOT_ENABLED, SE_FATAL_ERROR, SE_HEARTBEAT_FAILURE, SE_MARKED_DOWN, SE_VM_DELETED, SE_VM_PURGED, SE_UP, SE_POWERED_DOWN, SE_REBOOTED, SE_HEALTH_CHECK_FAIL, SE_EXTERNAL_HM_RESTART, SE_DOWN, SE_VERSION_CHECK_FAILED, SE_UPGRADING, SE_ENABLE_STATE_CHANGED, SE_MIGRATE, SE_MGMT_IP_CHANGE, VSPHERE_HA_HOST_FAILURE, SE_ENABLE, CREATING_SE, CREATED_SE, CREATE_SE_FAIL, CREATE_SE_TIMEOUT, DELETING_SE, DELETED_SE, DELETE_SE_FAIL, ADD_NW_SE, DEL_NW_SE, VS_ADD_SE_INT, VS_REMOVED_SE_INT, VS_ADD_SE, VS_REMOVED_SE, ADD_NW_FAIL, RM_DEL_NETWORK_FAIL, REBOOT_SE, MODIFY_NW, MODIFY_NW_FAIL, VS_SE_BOOTUP_FAIL, VS_SE_IP_FAIL, NO_HOST_AVAIL, VS_SWITCHOVER, VS_SWITCHOVER_FAIL, ADD_VIP_VNIC, DEL_VIP_VNIC, CC_ATTACH_IP_SKIPPED, CC_ATTACH_IP_SUCCESS, CC_ATTACH_IP_TIMEDOUT, CC_ATTACH_IP_FAILURE, CC_DETACH_IP_SKIPPED, CC_DETACH_IP_SUCCESS, CC_DETACH_IP_TIMEDOUT, CC_DETACH_IP_FAILURE, SHARED_VIP_ASYMMETRIC, SHARED_VIP_SYMMETRIC, VS_FSM_INACTIVE, VS_FSM_AWAITING_SE_ASSIGNMENT, VS_FSM_ACTIVE, VS_FSM_ACTIVE_AWAITING_SE_TRANSITION, VS_FSM_DISABLED, NEW_PROBABLE_SRVR, VS_SCALEOUT_DONE, VS_SCALEOUT_DONE_AWAITING_MORE_SE, VS_SCALEOUT_ERR, VS_SCALEIN_DONE, VS_SCALEIN_DONE_AWAITING_MORE_SE, VS_SCALEIN_ERR, VS_MIGRATE_SCALEOUT_DONE, VS_MIGRATE_SCALEOUT_ERROR, VS_MIGRATE_SCALEIN_DONE, VS_MIGRATE_SCALEIN_ERROR, VS_MIGRATE_DONE, VS_FSM_UNEXPECTED_EVENT, VS_RPC_TO_RESMGR_FAILED_EVENT, VS_RPC_TO_SE_FAILED_EVENT, VS_RPC_FAILED_EVENT, VS_SCALEOUT_COMPLETE, VS_SCALEIN_COMPLETE, VS_MIGRATE_STARTED, VS_MIGRATE_COMPLETE, VS_SCALEOUT_FAILED, VS_SCALEIN_FAILED, VS_MIGRATE_FAILED, VS_AWAITING_SE, VS_INITIAL_PLACEMENT_FAILED, VS_FSM_ACTIVE_AWAITING_SCALEOUT_READY, SE_READY_ON_CREATE_TIMEDOUT, SE_SCALEOUT_READY, SE_SCALEOUT_READY_TIMEDOUT, SE_SCALEIN_READY, SE_SCALEIN_READY_TIMEDOUT, SE_PRIMARY_SWITCHOVER_READY, SE_PRIMARY_SWITCHOVER_READY_TIMEDOUT, UPGRADE_ALL_SE_START, UPGRADE_ALL_SE_DONE, UPGRADE_ALL_SE_NOT_NEEDED, UPGRADE_SE_START, UPGRADE_SE_DONE, UPGRADE_SE_NOT_NEEDED, UPGRADE_SE_SUSPENDED, UPGRADE_SE_VS_SCALEOUT, UPGRADE_SE_VS_SCALEIN, UPGRADE_SE_VS_MIGRATE, UPGRADE_SE_VS_DISRUPTED, REBALANCE_VS_SCALEOUT, REBALANCE_VS_SCALEIN, REBALANCE_VS_MIGRATE, DISABLE_SE_VS_MIGRATE, ROLLBACK_ALL_SE_START, ROLLBACK_ALL_SE_DONE, MIGRATE_SE_STARTED, MIGRATE_SE_RESTARTED, MIGRATE_SE_FINISHED, MIGRATE_SE_FAILED, MIGRATE_SE_VS_MIGRATE_STARTED, MIGRATE_SE_VS_MIGRATE_FINISHED, MIGRATE_SE_VS_MIGRATE_FAILED, VIP_SCALEOUT, VIP_SCALEOUT_FAILED, VIP_SCALEIN, VIP_SCALEIN_FAILED, SE_HM_EVENT_SHM_DOWN, SE_HM_EVENT_SHM_UP, SERVER_DOWN, SERVER_UP, POOL_DOWN, POOL_UP, VS_DOWN, VS_UP, SE_SERVER_DELETED, SE_SERVER_DISABLED, SE_POOL_DELETED, SE_SERVER_APP_CHANGED, VS_CONN_LIMIT, VS_THROUGHPUT_LIMIT, CONN_DROP_MAX_SYN_TBL, CONN_DROP_MAX_FLOW_TBL, CONN_DROP_MAX_PERSIST_TBL, CONN_DROP_POOL_LB_FAILURE, CONN_DROP_NO_CONN_MEM, CONN_DROP_NO_PKT_BUFF, PKT_DROP_NO_PKT_BUFF, PKT_BUFF_ALLOC_FAIL, CACHE_OBJ_ALLOC_FAIL, SYN_ATTACK, CONN_THROTTLED_MEMFAIL_FLOW_TBL, SE_CPU_HIGH, SE_MEM_HIGH, SE_PKT_BUFF_HIGH, SE_PERSIST_TBL_HIGH, SE_CONN_MEM_HIGH, SE_DISK_HIGH, SE_FLOW_TBL_HIGH, SE_SYN_TBL_HIGH, SE_DP_HB_FAILED, SE_VNIC_DHCP_IP_ALLOC_FAILURE, SE_VNIC_DUPLICATE_IP, SE_SYN_CACHE_USAGE_HIGH, VM_CPU_HIGH, VM_MEM_HIGH, VS_SE_HA_ACTIVE, VS_SE_HA_COMPROMISED, POOL_SE_HA_ACTIVE, POOL_SE_HA_COMPROMISED, SERVER_DOWN_HA_COMPROMISED, SERVER_UP_HA_ACTIVE, SE_VNIC_IP_ADDED, SE_VNIC_IP_REMOVED, GS_MEMBER_DOWN, GS_MEMBER_UP, GS_GROUP_DOWN, GS_GROUP_UP, GS_DOWN, GS_UP, VIP_DOWN, VIP_UP, SE_GEO_DB_FAILURE, VS_GEO_DB_FAILURE, SE_GEO_DB_SUCCESS, VS_GEO_DB_SUCCESS, VS_CONFIG_SE_DATASTORE_DOWNLOAD_FAILED, SE_CONFIG_SE_DATASTORE_DOWNLOAD_FAILED, SE_EV_SERVER_DOWN, SE_EV_SERVER_UP, SE_EV_POOL_DOWN, SE_EV_POOL_UP, SE_EV_VS_DOWN, SE_EV_VS_UP, SE_HM_EVENT_GHM_DOWN, SE_HM_EVENT_GHM_UP, SE_EV_GS_GROUP_DELETED, SE_EV_GS_MEMBER_DOWN, SE_EV_GS_MEMBER_UP, SE_EV_GS_GROUP_DOWN, SE_EV_GS_GROUP_UP, SE_EV_GS_DOWN, SE_EV_GS_UP, SE_IP6_DAD_FAILED, SE_EV_VS_RL_CONFIG_FAILED, SE_DP_HB_RECOVERED, SE_VS_PKT_BUFF_HIGH, SE_DISCONTINUOUS_TIME_CHANGE, SE_HIGH_INGRESS_PROC_LATENCY, SE_VS_DEL_FLOWS_DISRUPTED, SE_NTP_SYNCHRONIZATION_FAILED, SE_HIGH_EGRESS_PROC_LATENCY, SE_ARP_RATE_LIMIT_DROP, SE_ND_RATE_LIMIT_DROP, DEBUG_MODE_ON, DEBUG_MODE_OFF, QAT_SERVICE_OPER_DOWN, SE_RUNNING_IN_PCAP_MODE, CONFIG_CREATE, CONFIG_UPDATE, CONFIG_DELETE, USER_LOGIN, USER_LOGOUT, CONFIG_ACTION, CONFIG_INTERNAL_CREATE, CONFIG_INTERNAL_UPDATE, USER_PASSWORD_CHANGE_REQUEST, USER_AUTHORIZED_BY_RULE, USER_NOT_AUTHORIZED_BY_ANY_RULE, CONFIG_SE_GRP_FLAVOR_UPDATE, API_VERSION_DEPRECATED, DNS_QUERY_ERROR, ASYNC_PATCH_STATUS, MERGED_ASYNC_PATCH_STATUS, CONFIG_EXPORT, TECHSUPPORT_COLLECTION_STARTED, TECHSUPPORT_COLLECTION_ONGOING, TECHSUPPORT_COLLECTION_SUCCESS, TECHSUPPORT_COLLECTION_SUCCESS_WITH_ERROR, WARNING_EVENT, USER_PASSWORD_CHANGE_ATTEMPT, USER_PASSWORD_EXPIRE_ATTEMPT, SSL_CERT_EXPIRE, SSL_KEY_EXPORTED, SSL_CERT_RENEW, SSL_CERT_RENEW_FAILED, SSL_CERT_IGNORED, SSL_CERT_REVOKED, SSL_CERT_EXPIRED, CONTROLLER_NODE_JOINED, CONTROLLER_NODE_LEFT, CONTROLLER_SERVICE_FAILURE, CONTROLLER_LEADER_FAILOVER, CONTROLLER_WARM_REBOOT, CONTROLLER_SERVICE_RESTORED, CONTROLLER_SERVICE_CRITICAL_FAILURE, CONTROLLER_NODE_SHUTDOWN, CONTROLLER_NODE_STARTED, CLUSTER_CONFIG_FAILED, SE_SECURE_KEY_EXCHANGE, CTLR_SECURE_KEY_EXCHANGE, MALFORMED_SECURE_KEY_EXCHANGE, CLUSTIFY_CHECK_EVENT, SYSTEM_UPGRADE_STARTED, SYSTEM_UPGRADE_COMPLETE, SYSTEM_UPGRADE_ABORTED, SYSTEM_ROLLBACK_STARTED, SYSTEM_ROLLBACK_COMPLETE, SYSTEM_ROLLBACK_ABORTED, CONTROLLER_NODE_DB_REPLICATION_FAILED, CONTROLLER_PROCESS_STOPPED, CONTROLLER_MEMORY_BALANCER_DISABLED, CONTROLLER_MEMORY_BALANCER_DEACTIVATED, CONTROLLER_DISCONTINUOUS_TIME_CHANGE, CONTROLLER_PROCESS_MODE_TRANSITION, CONTROLLER_PROCESS_TREND_TRANSITION, CONTROLLER_PROCESS_STOPPED_MEMORY_VIOLATION, LOG_MANAGER_TASKQUEUE_ABNORMAL_GROWTH, USAGE_METERING_REGISTRATION, USAGE_METERING_DE_REGISTRATION, METRIC_THRESHOLD_UP_VIOLATION, LICENSE_EXPIRY, ANOMALY, LICENSE_ADDITION_NOTIF, LICENSE_REMOVAL_NOTIF, METRICS_DB_DISK_FULL, METRICS_DB_QUEUE_FULL, METRICS_DB_QUEUE_HEALTHY, METRICS_DBSYNC_FAILURE, METRICS_GRPC_AUTH_FAILURE, OPENSTACK_ACCESS_FAILURE, OPENSTACK_ACCESS_SUCCESS, OPENSTACK_IMAGE_UPLOAD_FAILURE, OPENSTACK_IMAGE_UPLOAD_SUCCESS, OPENSTACK_SE_VM_CREATED, OPENSTACK_SE_VM_DELETED, OPENSTACK_SE_VM_DELETION_DETECTED, OPENSTACK_VNIC_ADDED, OPENSTACK_VNIC_REMOVED, OPENSTACK_IP_DETACHED, OPENSTACK_IP_ATTACHED, OPENSTACK_SE_CREATION_FAILURE, OPENSTACK_SE_DELETION_FAILURE, OPENSTACK_VNIC_ADDITION_FAILURE, OPENSTACK_VNIC_DELETION_FAILURE, OPENSTACK_IP_DETACH_FAILURE, OPENSTACK_IP_ATTACH_FAILURE, OPENSTACK_LBPROV_AUDIT_FAILURE, OPENSTACK_LBPROV_AUDIT_SUCCESS, OPENSTACK_LBPLUGIN_OP_FAILURE, OPENSTACK_LBPLUGIN_OP_SUCCESS, OPENSTACK_SYNC_SERVICES_SUCCESS, OPENSTACK_SYNC_SERVICES_FAILURE, OPENSTACK_TENANTS_DELETED, OPENSTACK_API_VERSION_CHECK_FAILED, AWS_ACCESS_FAILURE, AWS_ACCESS_SUCCESS, AWS_IMAGE_UPLOAD_FAILURE, AWS_IMAGE_UPLOAD_SUCCESS, AWS_SNS_ACCESS_FAILURE, AWS_SNS_ACCESS_SUCCESS, AWS_SQS_ACCESS_FAILURE, AWS_SQS_ACCESS_SUCCESS, AWS_ASG_PUT_NOTIFICATION_CONFIGURATION_FAILURE, AWS_ASG_PUT_NOTIFICATION_CONFIGURATION_SUCCESS, AWS_ASG_DELETE_NOTIFICATION_CONFIGURATION_FAILURE, AWS_ASG_DELETE_NOTIFICATION_CONFIGURATION_SUCCESS, AWS_ASG_NOTIFICATION_PROCESSING_FAILURE, AWS_ASG_NOTIFICATION_PROCESSING_SUCCESS, AWS_ASG_NOTIFICATION_INSTANCE_ADDED, AWS_ASG_NOTIFICATION_INSTANCE_REMOVED, AWS_ASG_ACCESS_FAILURE, AWS_ASG_ACCESS_SUCCESS, AWS_ASG_NOTIFICATION_INSTANCE_LAUNCH_ERROR, AWS_ASG_NOTIFICATION_INSTANCE_TERMINATE_ERROR, AWS_ASG_NOTIFICATION_AUTOSCALE_GROUP_DELETED, CLOUD_AUTOSCALING_CONFIG_FAILURE, CLOUD_AUTOSCALING_DECONFIG_FAILURE, CLOUD_AUTOSCALING_ASG_ADD_FAILURE, CLOUD_AUTOSCALING_ASG_REMOVE_FAILURE, CLOUD_AUTOSCALING_NOTIFICATION_PROCESSING_FAILURE, CLOUD_ROUTE_CREATION_FAILURE, CLOUD_ROUTE_CREATION_SUCCESS, CLOUD_ROUTE_REMOVE_FAILURE, CLOUD_ROUTE_REMOVE_SUCCESS, CLOUDSTACK_ACCESS_FAILURE, CLOUDSTACK_ACCESS_SUCCESS, CLOUDSTACK_IMAGE_UPLOAD_FAILURE, CLOUDSTACK_IMAGE_UPLOAD_SUCCESS, DOCKER_UCP_ACCESS_SUCCESS, DOCKER_UCP_ACCESS_FAILURE, DOCKER_UCP_IMAGE_UPLOAD_FAILURE, DOCKER_UCP_IMAGE_UPLOAD_SUCCESS, DOCKER_UCP_IMAGE_UPLOAD_IN_PROGRESS, VCA_ACCESS_FAILURE, VCA_ACCESS_SUCCESS, VCA_IMAGE_UPLOAD_FAILURE, VCA_IMAGE_UPLOAD_SUCCESS, LS_ACCESS_FAILURE, LS_ACCESS_SUCCESS, LS_IMAGE_UPLOAD_FAILURE, LS_IMAGE_UPLOAD_SUCCESS, MESOS_ACCESS_SUCCESS, MESOS_ACCESS_FAILURE, MESOS_IMAGE_UPLOAD_FAILURE, MESOS_IMAGE_UPLOAD_SUCCESS, MESOS_IMAGE_UPLOAD_IN_PROGRESS, MESOS_CREATED_SE, MESOS_CREATE_SE_FAIL, MESOS_DELETED_SE, MESOS_DELETE_SE_FAIL, MESOS_STOPPED_SE, MESOS_STOP_SE_FAIL, MESOS_STARTED_SE, MESOS_START_SE_FAIL, MESOS_UPDATED_HOSTS, CC_SE_CREATED, CC_SE_CREATION_FAILURE, CC_SE_DELETED, CC_SE_DELETION_FAILURE, CC_SE_DELETION_DETECTED, CC_VNIC_ADDED, CC_VNIC_ADDITION_FAILURE, CC_VNIC_DELETED, CC_VNIC_DELETION_FAILURE, CC_IP_ATTACHED, CC_IP_ATTACH_FAILURE, CC_IP_DETACHED, CC_IP_DETACH_FAILURE, CC_SYNC_SERVICES_SUCCESS, CC_SYNC_SERVICES_FAILURE, CC_UPDATE_VIP_FAILURE, CC_DELETE_VIP_FAILURE, CC_CONFIG_FAILURE, CC_DECONFIG_FAILURE, CC_GENERIC_FAILURE, CC_CLUSTER_VIP_CONFIG_SUCCESS, CC_CLUSTER_VIP_CONFIG_FAILURE, CC_CLUSTER_VIP_DECONFIG_SUCCESS, CC_CLUSTER_VIP_DECONFIG_FAILURE, CC_MARATHON_SERVICE_PORT_OUTSIDE_VALID_RANGE, CC_MARATHON_SERVICE_PORT_ALREADY_IN_USE, CC_VIP_DNS_REGISTER_FAILURE, CC_TENANT_INIT_FAILURE, CC_HEALTH_FAILURE, CC_HEALTH_OK, CC_SE_STARTED, CC_SE_START_FAILURE, CC_SE_STOPPED, CC_SE_STOP_FAILURE, CC_VIP_PARK_INTF_SUCCESS, CC_VIP_PARK_INTF_FAILURE, CC_VIP_DNS_DEREGISTER_FAILURE, CC_VIP_DNS_VALIDATION_FAILURE, CC_VIP_DNS_REGISTER_SUCCESS, CC_VIP_DNS_DEREGISTER_SUCCESS, AWS_ROUTE53_ACCESS_FAILURE, AWS_ROUTE53_ACCESS_SUCCESS, CC_SCALE_SET_POLLING_FAILURE, CC_SCALE_SET_POLLING_SUCCESS, CC_MANAGEMENT_SVC_CREATED, CC_MANAGEMENT_SVC_CREATION_FAILURE, CC_MANAGEMENT_SVC_DELETED, CC_MANAGEMENT_SVC_DELETION_FAILURE, CC_MANAGEMENT_SVC_ACCESS_GRANT_CREATED, CC_MANAGEMENT_SVC_ACCESS_GRANT_CREATION_FAILURE, CC_MANAGEMENT_SVC_ACCESS_GRANT_DELETED, CC_MANAGEMENT_SVC_ACCESS_GRANT_DELETION_FAILURE, CC_SNAT_IP_ALLOCATED, CC_SNAT_IP_ALLOCATION_FAILURE, CC_SNAT_IP_DEALLOCATED, CC_SNAT_IP_DEALLOCATION_FAILURE, VS_HEALTH_CHANGE, SE_HEALTH_CHANGE, POOL_HEALTH_CHANGE, SERVER_HEALTH_CHANGE, VS_HEALTH_DEGRADED, SE_HEALTH_DEGRADED, POOL_HEALTH_DEGRADED, SERVER_HEALTH_DEGRADED, DUPLICATE_SUBNETS, SUMMARIZED_SUBNETS, IP_POOL_ALMOST_EXHAUSTED, IP_POOL_EXHAUSTED, IP_POOL_ALMOST_EXHAUSTED_VIP, IP_POOL_EXHAUSTED_VIP, IP_POOL_ALMOST_EXHAUSTED_SE, IP_POOL_EXHAUSTED_SE, LICENSE_LIMIT_SERVERS, LICENSE_LIMIT_SE_VCPUS, LICENSE_LIMIT_THROUGHPUT, LICENSE_LIMIT_VS, LICENSE_LIMIT_HOSTS, LICENSE_LIMIT_SE_SOCKETS, LICENSE_EXPIRED, BURST_RESOURCE_CONSUMED, BURST_RESOURCE_EXPIRY_ALERT, LICENSE_LIMIT_SE_SERVICE_CORES, APIC_BAD_CREDENTIALS, APIC_CREATE_LIFS, APIC_DELETE_LIFS, APIC_CREATE_LIF_CONTEXTS, APIC_DELETE_LIF_CONTEXTS, APIC_CREATE_CDEV, APIC_DELETE_CDEV, APIC_ATTACH_CIF_TO_LIF, APIC_DETACH_CIF_FROM_LIF, APIC_VS_PLACEMENT, APIC_BIND_VNIC_TO_NETWORK, APIC_CREATE_TENANT, APIC_DELETE_TENANT, APIC_CREATE_NETWORK, APIC_DELETE_NETWORK, APIC_NETWORK_VRF_CHANGED, APIC_VS_NETWORK_RESOLVE_ERROR, CONTAINER_CLOUD_ACCESS_SUCCESS, CONTAINER_CLOUD_ACCESS_FAILURE, CONTAINER_CLOUD_IMAGE_UPLOAD_FAILURE, CONTAINER_CLOUD_IMAGE_UPLOAD_SUCCESS, CONTAINER_CLOUD_IMAGE_UPLOAD_IN_PROGRESS, CONTAINER_CLOUD_CREATED_SE, CONTAINER_CLOUD_CREATE_SE_FAIL, CONTAINER_CLOUD_DELETED_SE, CONTAINER_CLOUD_DELETE_SE_FAIL, CONTAINER_CLOUD_STOPPED_SE, CONTAINER_CLOUD_STOP_SE_FAIL, CONTAINER_CLOUD_STARTED_SE, CONTAINER_CLOUD_START_SE_FAIL, CONTAINER_CLOUD_UPDATED_HOSTS, CONTAINER_CLOUD_SERVICE_SUCCESS, CONTAINER_CLOUD_SERVICE_FAILURE, CONTAINER_CLOUD_SERVICE_INCOMPLETE, CONTAINER_CLOUD_HEALTHCHECK_SE, CONTAINER_CLOUD_HEALTHCHECK_SE_FAIL, AVG_UPTIME_CHANGE, DOS_ATTACK, SE_DOS_ATTACK, SERVER_AUTOSCALE_OUT, SERVER_AUTOSCALE_IN, SERVER_AUTOSCALE_OUT_COMPLETE, SERVER_AUTOSCALE_IN_COMPLETE, SERVER_AUTOSCALE_FAILED, SERVER_AUTOSCALE_IN_FAILED, SERVER_AUTOSCALE_OUT_FAILED, SE_GATEWAY_HEARTBEAT_FAILED, SE_GATEWAY_HEARTBEAT_SUCCESS, SE_VNIC_DOWN_EVENT, SE_VNIC_TX_QUEUE_STALL, SE_BGP_PEER_STATE_CHANGE, SE_LICENSED_BANDWIDTH_EXCEEDED, SERVER_AUTOSCALE_OUT_TRIGGERED, SERVER_AUTOSCALE_IN_TRIGGERED, SE_BGP_PEER_DOWN, SE_OBJSYNC_PEER_DOWN, SE_REDIS_CONNECTION_DOWN, SE_INTERNAL_GATEWAY_HEARTBEAT_FAILED, SE_INTERNAL_GATEWAY_HEARTBEAT_SUCCESS, POOL_AUTO_DEPLOYMENT_FAILED, POOL_AUTO_DEPLOYMENT_SUCCESS, SE_VNIC_UP_EVENT, POOL_AUTO_DEPLOYMENT_UPDATE, GSLB_SITE_OPER_STATUS, GSLB_DNS_STATUS, GSLB_SITE_EXCEPTION_STATUS, GSLB_GS_STATUS, GSLB_SITE_SYNC_STATUS, VSGS_STATUS, GSLB_SM_STATUS, GSLB_CRM_STATUS, SCHEDULER_ACTION_SUCCESS, SCHEDULER_ACTION_FAILURE, SCHEDULER_ACTION_FAILED_WITH_ERROR, CONTROLLER_SCHEDULER_UNENCRYPTED_CONFIG_EXPORT, REMOTE_BACKUP_FAILURE, REMOTE_BACKUP_NO_HOST_KEY_CHECK, GCP_ACCESS_SUCCESS, GCP_ACCESS_FAIL, GCP_SE_DETECTED, GCP_API_FAIL, GCP_SUBNET_NOT_FOUND, GCP_SUBNET_ATTACH_FAIL, GCP_ROUTE_ADD_SUCCESS, GCP_ROUTE_DELETE_SUCCESS, GCP_ROUTE_ADD_FAIL, GCP_ROUTE_DELETE_FAIL, GCP_CLOUD_ROUTER_UPDATE_SUCCESS, GCP_CLOUD_ROUTER_UPDATE_FAIL, VIP_DNS_REGISTER_SUCCESS, VIP_DNS_REGISTER_FAILURE, VIP_DNS_DEREGISTER_SUCCESS, VIP_DNS_DEREGISTER_FAILURE, SYNC_DNS_RECORDS_SUCCESS, SYNC_DNS_RECORDS_FAILURE, FLUSH_DNS_RECORDS_SUCCESS, FLUSH_DNS_RECORDS_FAILURE, CC_HOST_SSH_FAILURE, CC_HOST_SSH_SUCCESS, AZURE_ACCESS_SUCCESS, AZURE_ACCESS_FAILURE, AZURE_ALB_UPDATE_FAILURE, AZURE_NIC_UPDATE_FAILURE, AZURE_ALB_UPDATE_SUCCESS, AZURE_NIC_UPDATE_SUCCESS, AZURE_NIC_DELETE_SUCCESS, AZURE_NIC_DELETE_FAILURE, AZURE_IMAGE_UPLOAD_FAILURE, AZURE_IMAGE_UPLOAD_SUCCESS, AZURE_MARKETPLACE_LICENSE_TERMS_SUCCESS, AZURE_MARKETPLACE_LICENSE_TERMS_FAILURE, VS_FAULT, SE_SHM_MEM_HIGH, SE_CONFIG_MEM_USAGE_ABOVE_LIMIT, OCI_ACCESS_SUCCESS, OCI_ACCESS_FAILURE, TENCENT_ACCESS_SUCCESS, TENCENT_ACCESS_FAILURE, CONTROLLER_CPU_HIGH, CONTROLLER_MEM_HIGH, CONTROLLER_DISK_HIGH, ALBSERVICES_CONNECTION_FAILURE, ALBSERVICES_CONTROLLER_DEREGISTERED, CRS_UPDATE, CRS_DEPLOYMENT_SUCCESS, CRS_DEPLOYMENT_FAILURE, IP_REPUTATION_DB_SYNC_SUCCESS, IP_REPUTATION_DB_SYNC_FAILURE, APPSIGNATURE_SYNC_SUCCESS, APPSIGNATURE_SYNC_FAILURE, IPV6_REPUTATION_DB_SYNC_SUCCESS, IPV6_REPUTATION_DB_SYNC_FAILURE, PSM_PROGRAM_FAILURE, PSM_MAX_PARAM_EVENT, PSM_MAX_URI_EVENT, SEC_MGR_DATA_ERROR_EVENT, UACACHE_PULSE_CONN_FAILED_EVENT, APP_INSIGHTS_MAX_URI_EVENT, APP_INSIGHTS_MAX_PARAM_EVENT, API_ENDPOINT_CLASSIFICATION_CHANGE_EVENT, LEARNING_DB_CLEANUP_EVENT, ALBSERVICES_CONTROLLER_REGISTERED, ALBSERVICES_SUPPORT_CASE_CREATED, ALBSERVICES_SUPPORT_CASE_UPDATED, ALBSERVICES_SUPPORT_CASE_FILE_ATTACHMENT_TRIGGERED, ALBSERVICES_SUPPORT_CASE_FILE_ATTACHMENT_SUCCESS, ALBSERVICES_SUPPORT_CASE_FILE_ATTACHMENT_FAILURE, ALBSERVICES_FILE_DOWNLOAD_TRIGGERED, ALBSERVICES_FILE_DOWNLOAD_SUCCESS, ALBSERVICES_FILE_DOWNLOAD_FAILURE, NSXT_ACCESS_SUCCESS, VCENTER_ACCESS_SUCCESS, NSXT_ACCESS_FAIL, VCENTER_ACCESS_FAIL, NSXT_IMAGE_UPLOAD_FAILURE, NSXT_IMAGE_UPLOAD_SUCCESS, NSXT_IMAGE_DELETE_FAILURE, NSXT_IMAGE_DELETE_SUCCESS, VCENTER_VSPHERE_HA_NOT_CONFIGURED, NSXT_SI_SERVICE_CREATE_UPDATE_SUCCESS, NSXT_SI_SERVICE_CREATE_UPDATE_FAILURE, NSXT_SI_SERVICE_DELETE_SUCCESS, NSXT_SI_SERVICE_DELETE_FAILURE, NSXT_SI_VIRTUALENDPOINT_CREATE_UPDATE_SUCCESS, NSXT_SI_VIRTUALENDPOINT_CREATE_UPDATE_FAILURE, NSXT_SI_VIRTUALENDPOINT_DELETE_SUCCESS, NSXT_SI_VIRTUALENDPOINT_DELETE_FAILURE, NSXT_SI_REDIRECTPOLICY_CREATE_UPDATE_SUCCESS, NSXT_SI_REDIRECTPOLICY_CREATE_UPDATE_FAILURE, NSXT_SI_REDIRECTPOLICY_DELETE_SUCCESS, NSXT_SI_REDIRECTPOLICY_DELETE_FAILURE, NSXT_SI_REDIRECTRULE_CREATE_UPDATE_SUCCESS, NSXT_SI_REDIRECTRULE_CREATE_UPDATE_FAILURE, NSXT_SI_REDIRECTRULE_DELETE_SUCCESS, NSXT_SI_REDIRECTRULE_DELETE_FAILURE, VCENTER_IMAGE_UPLOAD_FAILURE, VCENTER_IMAGE_UPLOAD_SUCCESS, VCENTER_IMAGE_DELETE_FAILURE, VCENTER_IMAGE_DELETE_SUCCESS, NSXT_INVALID_T1_SEG, NSXT_STREAMAGENT_CONNECT, NSXT_STREAMAGENT_DISCONNECT, NSXT_DFW_GROUP_UPDATE_SUCCESS, NSXT_DFW_GROUP_UPDATE_FAILURE, NSXT_DFW_GROUP_DELETE_FAILURE, NSXT_DFW_GROUP_DELETE_SUCCESS, NSXT_DFW_SERVICE_UPDATE_SUCCESS, NSXT_DFW_SERVICE_UPDATE_FAILED, NSXT_DFW_SERVICE_DELETE_SUCCESS, NSXT_DFW_SERVICE_DELETE_FAILED, NSXT_DFW_TAG_SEGMENT_PORT_SUCCESS, NSXT_DFW_TAG_SEGMENT_PORT_FAILED, NSXT_DFW_TAG_VM_SUCCESS, NSXT_DFW_TAG_VM_FAILED, NSXT_IP_GROUP_UPDATE_FAILED, NSXT_IP_GROUP_SYNC_NOT_SUPPORTED, NSXT_GROUP_FETCH_FAILED, NSXT_IP_GROUP_SYNC_MULTIPLE_NSX_URLS, NSXT_IP_GROUP_MEMBERS_LIMIT_EXCEEDED, UPGRADE_CONTROLLER_STARTED, UPGRADE_SE_GROUP_STARTED, RESUME_SE_GROUP_STARTED, PATCH_CONTROLLER_STARTED, PATCH_SE_GROUP_STARTED, ROLLBACK_CONTROLLER_STARTED, ROLLBACK_SE_GROUP_STARTED, ROLLBACKPATCH_CONTROLLER_STARTED, ROLLBACKPATCH_SE_GROUP_STARTED, UPGRADE_CONTROLLER_COMPLETE, UPGRADE_SE_GROUP_COMPLETE, PATCH_CONTROLLER_COMPLETE, PATCH_SE_GROUP_COMPLETE, ROLLBACK_CONTROLLER_COMPLETE, ROLLBACK_SE_GROUP_COMPLETE, ROLLBACKPATCH_CONTROLLER_COMPLETE, ROLLBACKPATCH_SE_GROUP_COMPLETE, UPGRADE_CONTROLLER_ABORTED, PATCH_CONTROLLER_ABORTED, UPGRADE_SE_GROUP_SUSPENDED, PATCH_SE_GROUP_SUSPENDED, ROLLBACK_SE_GROUP_SUSPENDED, ROLLBACKPATCH_SE_GROUP_SUSPENDED, UPGRADE_REQUEST, LICENSE_TRANSACTION, LICENSE_SE_RECONCILE, LICENSE_CONTROLLER_LICENSE_RECONCILE, LICENSE_TIER_SWITCH, CENTRAL_LICENSE_SUBSCRIPTION, CENTRAL_LICENSE_UNSUBSCRIPTION, CENTRAL_LICENSE_REFRESH_SUCCESS, CENTRAL_LICENSE_REFRESH_FAILURE, ROLLBACK_CONTROLLER_ABORTED, ROLLBACKPATCH_CONTROLLER_ABORTED, UPGRADE_DRYRUN_STARTED, UPGRADE_DRYRUN_COMPLETED, UPGRADE_DRYRUN_ABORTED, AUDIT_COMPLIANCE_EVENT, LOGAGENT_STREAMING_CONN_EVENT, CONTROLLER_DB_ERROR, AVI_FALSE_POSITIVE_DETECTION, CONNECT_TO_METRICSMGR_ERROR, DNS_VS_STATUS, CONFIG_VERSION_ACK_STATUS, PRE_CHECK_STARTED, PRE_CHECK_COMPLETED, POSTGRES_REPLICATION_FAILED, SAML_METADATA_UPDATE_FAILED, RESTORE_CONTROLLER_STARTED, RESTORE_CONTROLLER_ABORTED, RESTORE_CONTROLLER_COMPLETED, LOG_FREQUENT_DISK_CLEANUP, REQUEST_QUEUE_FULL, REQUEST_QUEUE_RECOVERING, POSTGRES_MAX_CONN_LIMIT_BREACHED, POSTGRES_CONN_RECOVERY, REQUEST_RATELIMIT, SYSTEM_REPORT_GENERATION_STARTED, SYSTEM_REPORT_GENERATION_COMPLETED, SYSTEM_REPORT_GENERATION_FAILED, SYSTEM_REPORT_DELETED, CRL_ENDPOINT_EXPIRED, CRL_ENDPOINT_EXPIRING_SOON, CRL_INVALID_ETAG, UBER_EVENT_TEMPLATE, UBER_EVENT_ERR_TEMPLATE, UPGRADE_FILECOPY_COMPLETED, UPGRADE_FILECOPY_FAILED, SE_PROCESS_CRASHED, CONTROLSCRIPT_EXECUTION_FAILURE, SYSTEM_LIMIT_BEYOND_SUPPORTED_CONFIG, SYSTEM_LIMIT_WITHIN_SUPPORTED_CONFIG, SYSTEM_CONFIG_SYNC_FAILURE, SE_AUTOSCALER_ACTIONS_GENERATED, PASSWORD_ROTATION_COMPLETED, PASSWORD_ROTATION_FAILED, PASSWORD_ROTATION_BOTH_PASSWORDS_INVALID, NTP_WEAK_AUTH_ALGORITHM_CONFIGURED, OPEN_API_SPEC_DELETE_CLEANUP_STARTED, OPEN_API_SPEC_DELETE_CLEANUP_COMPLETED. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Events []string `json:"events,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Pool *string `json:"pool,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Sslkeyandcertificate *string `json:"sslkeyandcertificate,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Virtualservice *string `json:"virtualservice,omitempty"` +} diff --git a/go/models/federation_checkpoint.go b/go/models/federation_checkpoint.go new file mode 100644 index 0000000000..cec662ba20 --- /dev/null +++ b/go/models/federation_checkpoint.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// FederationCheckpoint federation checkpoint +// swagger:model FederationCheckpoint +type FederationCheckpoint any diff --git a/go/models/file_service_entry.go b/go/models/file_service_entry.go new file mode 100644 index 0000000000..ae6e9e5e8f --- /dev/null +++ b/go/models/file_service_entry.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// FileServiceEntry file service entry +// swagger:model FileServiceEntry +type FileServiceEntry struct { + + // MD5 checksum of the file; present only when the request included the compute_checksum query param. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Md5checksum *string `json:"md5checksum,omitempty"` + + // Last-modified timestamp of the file, ISO-8601. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Modified *string `json:"modified,omitempty"` + + // Name of the referenced Avi object, populated only for vs-pcap/se-pcap entries (derived from the pcap filename), absent for plain files. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // File size in bytes as a string, or the literal *string 'dir' for a nested directory entry. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Size *string `json:"size,omitempty"` + + // Contents of an associated stack-trace file, present only when listing the archive/ sub-directory. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StackTrace *string `json:"stack_trace,omitempty"` + + // JSON-encoded TechSupport status object, present only when listing the tech_support directory. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *string `json:"status,omitempty"` + + // Fully-qualified /api/fileservice?uri=... URL to fetch this entry. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + URL *string `json:"url,omitempty"` +} diff --git a/go/models/file_service_entry_api_response.go b/go/models/file_service_entry_api_response.go new file mode 100644 index 0000000000..eba69cd884 --- /dev/null +++ b/go/models/file_service_entry_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// FileServiceEntryAPIResponse file service entry Api response +// swagger:model FileServiceEntryApiResponse +type FileServiceEntryAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*FileServiceEntry `json:"results,omitempty"` +} diff --git a/go/models/file_service_ipam_dns_script_upload_ack.go b/go/models/file_service_ipam_dns_script_upload_ack.go new file mode 100644 index 0000000000..bface3b024 --- /dev/null +++ b/go/models/file_service_ipam_dns_script_upload_ack.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// FileServiceIPAMDNSScriptUploadAck file service Ipam Dns script upload ack +// swagger:model FileServiceIpamDnsScriptUploadAck +type FileServiceIPAMDNSScriptUploadAck any diff --git a/go/models/file_service_listing.go b/go/models/file_service_listing.go new file mode 100644 index 0000000000..17bf74a016 --- /dev/null +++ b/go/models/file_service_listing.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// FileServiceListing file service listing +// swagger:model FileServiceListing +type FileServiceListing struct { + + // Number of entries in results. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // Directory listing entries for the requested controller // sub-directory. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*FileServiceEntry `json:"results,omitempty"` +} diff --git a/go/models/gslb_dns_geo_update.go b/go/models/gslb_dns_geo_update.go new file mode 100644 index 0000000000..294b59a23d --- /dev/null +++ b/go/models/gslb_dns_geo_update.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbDNSGeoUpdate gslb Dns geo update +// swagger:model GslbDnsGeoUpdate +type GslbDNSGeoUpdate any diff --git a/go/models/gslb_dns_se_info.go b/go/models/gslb_dns_se_info.go new file mode 100644 index 0000000000..789ece7845 --- /dev/null +++ b/go/models/gslb_dns_se_info.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbDNSSeInfo gslb Dns se info +// swagger:model GslbDnsSeInfo +type GslbDNSSeInfo any diff --git a/go/models/gslb_file_object_runtime.go b/go/models/gslb_file_object_runtime.go new file mode 100644 index 0000000000..6ffd26c5cc --- /dev/null +++ b/go/models/gslb_file_object_runtime.go @@ -0,0 +1,37 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbFileObjectRuntime gslb file object runtime +// swagger:model GslbFileObjectRuntime +type GslbFileObjectRuntime struct { + + // The site controller cluster UUID. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ClusterUUID *string `json:"cluster_uuid,omitempty"` + + // Indicates the status of file object related tasks(ex mm_converter, replication in cluster). Enum options - REPLICATED_WITH_SUCCESS. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FileCopySuccess *string `json:"file_copy_success,omitempty"` + + // FileObject follower site config states. Field introduced in 30.2.1, 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FlrState []*CfgState `json:"flr_state,omitempty"` + + // FileObject leader site config state. Field introduced in 30.2.1, 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LdrState *CfgState `json:"ldr_state,omitempty"` + + // FileObject name. Field introduced in 30.2.1, 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // File object uuid. It is a reference to an object of type FileObject. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ObjRef *string `json:"obj_ref,omitempty"` + + // The config replication info to SE(es) and peer sites. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ReplState *CfgState `json:"repl_state,omitempty"` + + // Uuid of the tenant. It is a reference to an object of type Tenant. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` + + // UUID of the GslbFileObjectRuntime. Field introduced in 30.2.1, 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/gslb_file_service_upload_ack.go b/go/models/gslb_file_service_upload_ack.go new file mode 100644 index 0000000000..259ee10cce --- /dev/null +++ b/go/models/gslb_file_service_upload_ack.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbFileServiceUploadAck gslb file service upload ack +// swagger:model GslbFileServiceUploadAck +type GslbFileServiceUploadAck any diff --git a/go/models/gslb_hdr.go b/go/models/gslb_hdr.go new file mode 100644 index 0000000000..fbd98d125e --- /dev/null +++ b/go/models/gslb_hdr.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbHdr gslb hdr +// swagger:model GslbHdr +type GslbHdr struct { + + // Gslb Group - UUID. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + GlbUUID *string `json:"glb_uuid,omitempty"` + + // Message type. Enum options - GSLB_SITE_NONE, GSLB_SITE_CONFIG, GSLB_SITE_HS, GSLB_SITE_MMODE, GSLB_SITE_FILE_CONFIG. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Mtype *string `json:"mtype,omitempty"` + + // Receiver's Cluster UUID. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + RxUUID *string `json:"rx_uuid,omitempty"` + + // Timestamp is used as txn-id to identify a txn. Responses will contain the same txn-id for id. . Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Timestamp *float32 `json:"timestamp,omitempty"` + + // Sender's Cluster UUID. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TxUUID *string `json:"tx_uuid,omitempty"` + + // view-id used in maintenance mode. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ViewID *uint64 `json:"view_id,omitempty"` +} diff --git a/go/models/gslb_site_metadata.go b/go/models/gslb_site_metadata.go new file mode 100644 index 0000000000..1eeb93cf5c --- /dev/null +++ b/go/models/gslb_site_metadata.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbSiteMetadata gslb site metadata +// swagger:model GslbSiteMetadata +type GslbSiteMetadata struct { + + // Site resource information like cpu, memory, disk etc. including site version. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ClustifyInfo *ClustifyInfo `json:"clustify_info,omitempty"` +} diff --git a/go/models/gslb_site_ops.go b/go/models/gslb_site_ops.go new file mode 100644 index 0000000000..b800f2bb6e --- /dev/null +++ b/go/models/gslb_site_ops.go @@ -0,0 +1,45 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbSiteOps gslb site ops +// swagger:model GslbSiteOps +type GslbSiteOps struct { + + // UNIX time since epoch in microseconds. Units(MICROSECONDS). + // Read Only: true + LastModified *string `json:"_last_modified,omitempty"` + + // List of ghm-uuids that need to be deleted. Field introduced in 17.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + GhmDelV2 []string `json:"ghm_del_v2,omitempty"` + + // Message Header for Site-to-Site Xchg. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hdr *GslbHdr `json:"hdr,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hs *GslbSiteHealthStatus `json:"hs,omitempty"` + + // Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Objs []*GslbSiteOpsObj `json:"objs,omitempty"` + + // Enum options - GSLB_NONE, GSLB_CREATE, GSLB_UPDATE, GSLB_DELETE, GSLB_PURGE, GSLB_DECL. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ops *string `json:"ops,omitempty"` + + // Site metadata of the gslb leader site, sent during site invitation. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SiteMetadata *GslbSiteMetadata `json:"site_metadata,omitempty"` + + // Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SkipRemote *bool `json:"skip_remote,omitempty"` + + // Current Sw version @ leader when glb-cfg is sent. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SwVersion *string `json:"sw_version,omitempty"` + + // url + // Read Only: true + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/gslb_site_ops_api_response.go b/go/models/gslb_site_ops_api_response.go new file mode 100644 index 0000000000..857d798a05 --- /dev/null +++ b/go/models/gslb_site_ops_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbSiteOpsAPIResponse gslb site ops Api response +// swagger:model GslbSiteOpsApiResponse +type GslbSiteOpsAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*GslbSiteOps `json:"results,omitempty"` +} diff --git a/go/models/gslb_site_ops_obj.go b/go/models/gslb_site_ops_obj.go new file mode 100644 index 0000000000..18b4b6e52e --- /dev/null +++ b/go/models/gslb_site_ops_obj.go @@ -0,0 +1,55 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbSiteOpsObj gslb site ops obj +// swagger:model GslbSiteOpsObj +type GslbSiteOpsObj struct { + + // Placeholder for GslbGeoDbProfile object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + App *ApplicationPersistenceProfile `json:"app,omitempty"` + + // Describes the object type. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DsName *string `json:"ds_name,omitempty"` + + // Placeholder for FileObject object. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Fileobject *FileObject `json:"fileobject,omitempty"` + + // Placeholder for GslbGeoDbProfile object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Geo *GslbGeoDbProfile `json:"geo,omitempty"` + + // Placeholder for Gslb object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Glb *Gslb `json:"glb,omitempty"` + + // Placeholder for GslbService object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Gs *GslbService `json:"gs,omitempty"` + + // Placeholder for HealthMonitor object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hm *HealthMonitor `json:"hm,omitempty"` + + // Placeholder for JWTServerProfile object. Field introduced in 20.1.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Jwtserverprofile *JWTServerProfile `json:"jwtserverprofile,omitempty"` + + // Describes the operation on the object. Enum options - GSLB_NONE, GSLB_CREATE, GSLB_UPDATE, GSLB_DELETE, GSLB_PURGE, GSLB_DECL. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ops *string `json:"ops,omitempty"` + + // Placeholder for PKIProfile object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Pki *PKIProfile `json:"pki,omitempty"` + + // Describes additional reason of object. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Reason *string `json:"reason,omitempty"` + + // Placeholder for SSLProfile object. Field introduced in 22.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ssl *SSLProfile `json:"ssl,omitempty"` + + // Placeholder for SSLKeyAndCertificate object. Field introduced in 22.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SslCert *SSLKeyAndCertificate `json:"ssl_cert,omitempty"` + + // Describes the operation status of the object. Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO, SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN, SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_FAILED.... Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *string `json:"status,omitempty"` + + // obj's uuid in case of delete or declarative operations. Field introduced in 17.2.7. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/gslb_site_ops_stale_object_status.go b/go/models/gslb_site_ops_stale_object_status.go new file mode 100644 index 0000000000..37300bf24f --- /dev/null +++ b/go/models/gslb_site_ops_stale_object_status.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// GslbSiteOpsStaleObjectStatus gslb site ops stale object status +// swagger:model GslbSiteOpsStaleObjectStatus +type GslbSiteOpsStaleObjectStatus struct { + + // Additional details of the command. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Details []string `json:"details,omitempty"` +} diff --git a/go/models/image_inventory.go b/go/models/image_inventory.go new file mode 100644 index 0000000000..659c7fe75c --- /dev/null +++ b/go/models/image_inventory.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageInventory image inventory +// swagger:model ImageInventory +type ImageInventory struct { + + // Count of total entries in Image Inventory. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Count *int32 `json:"count,omitempty"` + + // Information of all the images for inventory. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*ImageInventoryVersion `json:"results,omitempty"` +} diff --git a/go/models/image_inventory_info.go b/go/models/image_inventory_info.go new file mode 100644 index 0000000000..71ce9f6bd3 --- /dev/null +++ b/go/models/image_inventory_info.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageInventoryInfo image inventory info +// swagger:model ImageInventoryInfo +type ImageInventoryInfo struct { + + // Contains image protobuf. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Image *Image `json:"image,omitempty"` + + // Sets true if the image is in use. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InUse *bool `json:"in_use,omitempty"` + + // Gives the uuids of the ses and controller which are using this image. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InUseInfo []*InUseInfo `json:"in_use_info,omitempty"` +} diff --git a/go/models/image_inventory_version.go b/go/models/image_inventory_version.go new file mode 100644 index 0000000000..cbdccc64d7 --- /dev/null +++ b/go/models/image_inventory_version.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageInventoryVersion image inventory version +// swagger:model ImageInventoryVersion +type ImageInventoryVersion struct { + + // Information of image with the particular base version. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ImageInfo []*ImageInventoryInfo `json:"image_info,omitempty"` + + // Major version of the image. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Version *string `json:"version,omitempty"` +} diff --git a/go/models/image_raw_inventory_entry.go b/go/models/image_raw_inventory_entry.go new file mode 100644 index 0000000000..6ce71bf435 --- /dev/null +++ b/go/models/image_raw_inventory_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageRawInventoryEntry image raw inventory entry +// swagger:model ImageRawInventoryEntry +type ImageRawInventoryEntry struct { + + // Serialized Image config. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Config *Image `json:"config,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Runtime *ImageRawInventoryRuntime `json:"runtime,omitempty"` +} diff --git a/go/models/image_raw_inventory_response.go b/go/models/image_raw_inventory_response.go new file mode 100644 index 0000000000..669855051c --- /dev/null +++ b/go/models/image_raw_inventory_response.go @@ -0,0 +1,20 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageRawInventoryResponse image raw inventory response +// swagger:model ImageRawInventoryResponse +type ImageRawInventoryResponse struct { + + // Total number of image entries across all pages. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // URL of the next page, present only when more results remain. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Next *string `json:"next,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*ImageRawInventoryEntry `json:"results,omitempty"` +} diff --git a/go/models/image_raw_inventory_runtime.go b/go/models/image_raw_inventory_runtime.go new file mode 100644 index 0000000000..857667403c --- /dev/null +++ b/go/models/image_raw_inventory_runtime.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ImageRawInventoryRuntime image raw inventory runtime +// swagger:model ImageRawInventoryRuntime +type ImageRawInventoryRuntime struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InUse *bool `json:"in_use,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InUseInfo []*InUseInfo `json:"in_use_info,omitempty"` +} diff --git a/go/models/in_use_info.go b/go/models/in_use_info.go new file mode 100644 index 0000000000..776f7af8c7 --- /dev/null +++ b/go/models/in_use_info.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InUseInfo in use info +// swagger:model InUseInfo +type InUseInfo struct { + + // Contains the name of the se, controller or se group which are using this image. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Type of the system such as controller_cluster, se_group or se. Enum options - NODE_CONTROLLER_CLUSTER, NODE_SE_GROUP, NODE_SE_TYPE. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NodeType *string `json:"node_type,omitempty"` + + // Contains the uuid of the se, controller or se group which are using this image. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/infoblox_subnet_range.go b/go/models/infoblox_subnet_range.go new file mode 100644 index 0000000000..ac6723834f --- /dev/null +++ b/go/models/infoblox_subnet_range.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InfobloxSubnetRange infoblox subnet range +// swagger:model InfobloxSubnetRange +type InfobloxSubnetRange struct { + + // IPv6 reserved range to use for Infoblox allocation. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IPv6Ranges []*IPAddrRange `json:"ipv6_ranges,omitempty"` + + // IPv4 reserved range to use for Infoblox allocation. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ranges []*IPAddrRange `json:"ranges,omitempty"` + + // IPv4 subnet to use for Infoblox allocation. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Subnet *IPAddrPrefix `json:"subnet,omitempty"` + + // IPv6 subnet to use for Infoblox allocation. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Subnet6 *IPAddrPrefix `json:"subnet6,omitempty"` +} diff --git a/go/models/initial_data.go b/go/models/initial_data.go new file mode 100644 index 0000000000..7aab824c82 --- /dev/null +++ b/go/models/initial_data.go @@ -0,0 +1,55 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InitialData initial data +// swagger:model InitialData +type InitialData struct { + + // Custom login banner text, present only if /var/lib/avi/etc/avi-custom-banner exists. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Banner *string `json:"banner,omitempty"` + + // Current UTC time, ISO 8601. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + CurrentTime *string `json:"current_time"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + EmailConfigurationIsSet *bool `json:"email_configuration_is_set"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ErrorMessage *string `json:"error_message,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + IsAwsCloud *bool `json:"is_aws_cloud"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SetupFailed *bool `json:"setup_failed"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Sso *bool `json:"sso"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SsoLoggedIn *bool `json:"sso_logged_in"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + UserDefinedDefaultPassword *bool `json:"user_defined_default_password"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + UserInitialSetup *bool `json:"user_initial_setup"` + + // Only present when the caller has an authenticated session. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Version *ClusterVersionInfo `json:"version,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + WelcomeWorkflowComplete *bool `json:"welcome_workflow_complete"` +} diff --git a/go/models/inventory_map_pool.go b/go/models/inventory_map_pool.go new file mode 100644 index 0000000000..f52aa54d78 --- /dev/null +++ b/go/models/inventory_map_pool.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPool inventory map pool +// swagger:model InventoryMapPool +type InventoryMapPool struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Alert *AlertSummary `json:"alert,omitempty"` + + // Only url/uuid/name are populated. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Config *PoolConfig `json:"config,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + HealthScore *HealthScoreSummary `json:"health_score,omitempty"` + + // Network name -> server keys (ip port) reachable through it. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Networks map[string]InventoryMapPoolNetworkServers `json:"networks,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Runtime *PoolRuntimeSummary `json:"runtime,omitempty"` + + // Server key (ip port) -> server detail. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Servers map[string]InventoryMapPoolServer `json:"servers,omitempty"` +} diff --git a/go/models/inventory_map_pool_group_member.go b/go/models/inventory_map_pool_group_member.go new file mode 100644 index 0000000000..48e61c981e --- /dev/null +++ b/go/models/inventory_map_pool_group_member.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolGroupMember inventory map pool group member +// swagger:model InventoryMapPoolGroupMember +type InventoryMapPoolGroupMember struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PoolRef *string `json:"pool_ref,omitempty"` + + // Resolved detail of the referenced pool, same shape as an item in the VS's pools list; {} if the pool no longer exists. Additional PoolGroupSerializer member fields (e.g. priority_label, ratio) are passed through but not enumerated here. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PoolRefData *InventoryMapPool `json:"pool_ref_data,omitempty"` +} diff --git a/go/models/inventory_map_pool_group_ref.go b/go/models/inventory_map_pool_group_ref.go new file mode 100644 index 0000000000..d47bfbdb06 --- /dev/null +++ b/go/models/inventory_map_pool_group_ref.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolGroupRef inventory map pool group ref +// swagger:model InventoryMapPoolGroupRef +type InventoryMapPoolGroupRef struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Members []*InventoryMapPoolGroupMember `json:"members,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/inventory_map_pool_group_ref_api_response.go b/go/models/inventory_map_pool_group_ref_api_response.go new file mode 100644 index 0000000000..f4b9405be9 --- /dev/null +++ b/go/models/inventory_map_pool_group_ref_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolGroupRefAPIResponse inventory map pool group ref Api response +// swagger:model InventoryMapPoolGroupRefApiResponse +type InventoryMapPoolGroupRefAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*InventoryMapPoolGroupRef `json:"results,omitempty"` +} diff --git a/go/models/inventory_map_pool_network_servers.go b/go/models/inventory_map_pool_network_servers.go new file mode 100644 index 0000000000..d92d53e93c --- /dev/null +++ b/go/models/inventory_map_pool_network_servers.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolNetworkServers inventory map pool network servers +// swagger:model InventoryMapPoolNetworkServers +type InventoryMapPoolNetworkServers struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ServerKeys []string `json:"server_keys,omitempty"` +} diff --git a/go/models/inventory_map_pool_networks_entry.go b/go/models/inventory_map_pool_networks_entry.go new file mode 100644 index 0000000000..684b4e64a9 --- /dev/null +++ b/go/models/inventory_map_pool_networks_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolNetworksEntry inventory map pool networks entry +// swagger:model InventoryMapPool.NetworksEntry +type InventoryMapPoolNetworksEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *InventoryMapPoolNetworkServers `json:"value,omitempty"` +} diff --git a/go/models/inventory_map_pool_server.go b/go/models/inventory_map_pool_server.go new file mode 100644 index 0000000000..a0813a89f1 --- /dev/null +++ b/go/models/inventory_map_pool_server.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolServer inventory map pool server +// swagger:model InventoryMapPoolServer +type InventoryMapPoolServer struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Config *InventoryMapPoolServerConfig `json:"config,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + HealthScore *HealthScoreSummary `json:"health_score,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Runtime *InventoryMapPoolServerRuntime `json:"runtime,omitempty"` +} diff --git a/go/models/inventory_map_pool_server_config.go b/go/models/inventory_map_pool_server_config.go new file mode 100644 index 0000000000..f59c331031 --- /dev/null +++ b/go/models/inventory_map_pool_server_config.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolServerConfig inventory map pool server config +// swagger:model InventoryMapPoolServerConfig +type InventoryMapPoolServerConfig struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hostname *string `json:"hostname,omitempty"` +} diff --git a/go/models/inventory_map_pool_server_runtime.go b/go/models/inventory_map_pool_server_runtime.go new file mode 100644 index 0000000000..259339bfca --- /dev/null +++ b/go/models/inventory_map_pool_server_runtime.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolServerRuntime inventory map pool server runtime +// swagger:model InventoryMapPoolServerRuntime +type InventoryMapPoolServerRuntime struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + OperStatus *OperationalStatus `json:"oper_status,omitempty"` +} diff --git a/go/models/inventory_map_pool_servers_entry.go b/go/models/inventory_map_pool_servers_entry.go new file mode 100644 index 0000000000..53b8b23ea8 --- /dev/null +++ b/go/models/inventory_map_pool_servers_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapPoolServersEntry inventory map pool servers entry +// swagger:model InventoryMapPool.ServersEntry +type InventoryMapPoolServersEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *InventoryMapPoolServer `json:"value,omitempty"` +} diff --git a/go/models/inventory_map_response.go b/go/models/inventory_map_response.go new file mode 100644 index 0000000000..d0397c2841 --- /dev/null +++ b/go/models/inventory_map_response.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapResponse inventory map response +// swagger:model InventoryMapResponse +type InventoryMapResponse struct { + + // Total number of Virtual Services. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Count *uint32 `json:"count,omitempty"` + + // URL of the next page of results, if any. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Next *string `json:"next,omitempty"` + + // Per-VS inventory-map entries. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*InventoryMapVsEntry `json:"results,omitempty"` + + // Flat de-duplicated list of ServiceEngines referenced by any VS in results, each entry only populates uuid/name/url/cloud_ref. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Serviceengines []*ServiceEngineInventory `json:"serviceengines,omitempty"` +} diff --git a/go/models/inventory_map_vs_config.go b/go/models/inventory_map_vs_config.go new file mode 100644 index 0000000000..7c2dfa6eb5 --- /dev/null +++ b/go/models/inventory_map_vs_config.go @@ -0,0 +1,40 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapVsConfig inventory map vs config +// swagger:model InventoryMapVsConfig +type InventoryMapVsConfig struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudRef *string `json:"cloud_ref,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + EastWestPlacement *bool `json:"east_west_placement,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FloatingIP *string `json:"floating_ip,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Fqdn *string `json:"fqdn,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeGroupRef *string `json:"se_group_ref,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Vip *string `json:"vip,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + WafPolicyRef *string `json:"waf_policy_ref,omitempty"` +} diff --git a/go/models/inventory_map_vs_config_api_response.go b/go/models/inventory_map_vs_config_api_response.go new file mode 100644 index 0000000000..c86ab8a24c --- /dev/null +++ b/go/models/inventory_map_vs_config_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapVsConfigAPIResponse inventory map vs config Api response +// swagger:model InventoryMapVsConfigApiResponse +type InventoryMapVsConfigAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*InventoryMapVsConfig `json:"results,omitempty"` +} diff --git a/go/models/inventory_map_vs_entry.go b/go/models/inventory_map_vs_entry.go new file mode 100644 index 0000000000..eaa6265ad8 --- /dev/null +++ b/go/models/inventory_map_vs_entry.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// InventoryMapVsEntry inventory map vs entry +// swagger:model InventoryMapVsEntry +type InventoryMapVsEntry struct { + + // Flattened subset of VS config fields used by the map view. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Config *InventoryMapVsConfig `json:"config,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PoolgroupRefs []*InventoryMapPoolGroupRef `json:"poolgroup_refs,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Pools []*InventoryMapPool `json:"pools,omitempty"` + + // VS oper_status plus vip_summary, present when the 'runtime' resource is requested. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Runtime *VsRuntimeSummary `json:"runtime,omitempty"` + + // UUIDs of ServiceEngines serving this VS (empty for east-west VSs). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Serviceengines []string `json:"serviceengines,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/ipam_dns_record_info.go b/go/models/ipam_dns_record_info.go new file mode 100644 index 0000000000..8d542fa80f --- /dev/null +++ b/go/models/ipam_dns_record_info.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// IPAMDNSRecordInfo Ipam Dns record info +// swagger:model IpamDnsRecordInfo +type IPAMDNSRecordInfo struct { + + // Number of DNS records. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumRecords *uint32 `json:"num_records,omitempty"` + + // List of DNS records. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Records []*DNSRecord `json:"records,omitempty"` +} diff --git a/go/models/ipam_dns_subnet_domain_list.go b/go/models/ipam_dns_subnet_domain_list.go new file mode 100644 index 0000000000..ff51837c2d --- /dev/null +++ b/go/models/ipam_dns_subnet_domain_list.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// IPAMDNSSubnetDomainList Ipam Dns subnet domain list +// swagger:model IpamDnsSubnetDomainList +type IPAMDNSSubnetDomainList struct { + + // List of networks, v4 subnets and v6 subnets. Field introduced in 21.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AllocNetworksAndSubnets []*CustomIPAMSubnet `json:"alloc_networks_and_subnets,omitempty"` + + // List of v4 and v6 subnets with ranges. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AllocSubnetsAndRanges []*InfobloxSubnetRange `json:"alloc_subnets_and_ranges,omitempty"` + + // List of DNS records. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DNSRecords *IPAMDNSRecordInfo `json:"dns_records,omitempty"` + + // Domains List. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Domains []string `json:"domains,omitempty"` + + // Failure reason. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Error *string `json:"error,omitempty"` + + // Subnet List. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Subnets []*IPAddrPrefix `json:"subnets,omitempty"` + + // Domains List with visibility. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Zdomains []*DNSDomain `json:"zdomains,omitempty"` +} diff --git a/go/models/j_w_t_profile.go b/go/models/j_w_t_profile.go new file mode 100644 index 0000000000..82bd9dffea --- /dev/null +++ b/go/models/j_w_t_profile.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// JWTProfile j w t profile +// swagger:model JWTProfile +type JWTProfile any diff --git a/go/models/license_policy.go b/go/models/license_policy.go new file mode 100644 index 0000000000..408c469e56 --- /dev/null +++ b/go/models/license_policy.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicensePolicy license policy +// swagger:model LicensePolicy +type LicensePolicy struct { + + // License expiration date. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpirationDate *string `json:"expiration_date,omitempty"` + + // Expiration pre warning period. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpirationPreWarn *string `json:"expiration_pre_warn,omitempty"` + + // License expiration reason. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpirationReason *string `json:"expiration_reason,omitempty"` + + // License grace period. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + GracePeriod *string `json:"grace_period,omitempty"` + + // License warnings. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseWarnings []*LicenseWarning `json:"license_warnings,omitempty"` +} diff --git a/go/models/license_tenant_usage_info.go b/go/models/license_tenant_usage_info.go new file mode 100644 index 0000000000..3ed4d05293 --- /dev/null +++ b/go/models/license_tenant_usage_info.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseTenantUsageInfo license tenant usage info +// swagger:model LicenseTenantUsageInfo +type LicenseTenantUsageInfo struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ConsumedServiceCores *float64 `json:"consumed_service_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumSeVcpus *float64 `json:"num_se_vcpus,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ReservedServiceCores *float64 `json:"reserved_service_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UsedServiceCores *float64 `json:"used_service_cores,omitempty"` +} diff --git a/go/models/license_tier_usage_info.go b/go/models/license_tier_usage_info.go new file mode 100644 index 0000000000..d774f58d20 --- /dev/null +++ b/go/models/license_tier_usage_info.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseTierUsageInfo license tier usage info +// swagger:model LicenseTierUsageInfo +type LicenseTierUsageInfo struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ConsumedServiceCores *float64 `json:"consumed_service_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicensedCores *float64 `json:"licensed_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicensedServiceCores *float64 `json:"licensed_service_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumSeVcpus *float64 `json:"num_se_vcpus,omitempty"` + + // Per-tenant breakdown keyed by tenant UUID; omitted entirely when the filter_pertenant query param is true. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Pertenant map[string]LicenseTenantUsageInfo `json:"pertenant,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ReservedServiceCores *float64 `json:"reserved_service_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UsedServiceCores *float64 `json:"used_service_cores,omitempty"` +} diff --git a/go/models/license_tier_usage_info_pertenant_entry.go b/go/models/license_tier_usage_info_pertenant_entry.go new file mode 100644 index 0000000000..50cca0c414 --- /dev/null +++ b/go/models/license_tier_usage_info_pertenant_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseTierUsageInfoPertenantEntry license tier usage info pertenant entry +// swagger:model LicenseTierUsageInfo.PertenantEntry +type LicenseTierUsageInfoPertenantEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *LicenseTenantUsageInfo `json:"value,omitempty"` +} diff --git a/go/models/license_usage_info.go b/go/models/license_usage_info.go new file mode 100644 index 0000000000..2d3ef86e9c --- /dev/null +++ b/go/models/license_usage_info.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseUsageInfo license usage info +// swagger:model LicenseUsageInfo +type LicenseUsageInfo struct { + + // Service cores actively consumed across all tenants for the default tier. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ConsumedServiceCores *float64 `json:"consumed_service_cores,omitempty"` + + // Alias of licensed_service_cores. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicensedCores *float64 `json:"licensed_cores,omitempty"` + + // Service cores licensed for the controller's default license tier. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicensedServiceCores *float64 `json:"licensed_service_cores,omitempty"` + + // Alias of used_service_cores. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumSeVcpus *float64 `json:"num_se_vcpus,omitempty"` + + // Per-tier breakdown, keyed by LicenseTierType name (e.g. ENTERPRISE, ENTERPRISE_WITH_CLOUD_SERVICES). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Pertier map[string]LicenseTierUsageInfo `json:"pertier,omitempty"` + + // Service cores held in escrow but not yet consumed, for the default tier. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ReservedServiceCores *float64 `json:"reserved_service_cores,omitempty"` + + // consumed_service_cores + reserved_service_cores. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UsedServiceCores *float64 `json:"used_service_cores,omitempty"` +} diff --git a/go/models/license_usage_info_pertier_entry.go b/go/models/license_usage_info_pertier_entry.go new file mode 100644 index 0000000000..520314c4fa --- /dev/null +++ b/go/models/license_usage_info_pertier_entry.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseUsageInfoPertierEntry license usage info pertier entry +// swagger:model LicenseUsageInfo.PertierEntry +type LicenseUsageInfoPertierEntry struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Key *string `json:"key,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Value *LicenseTierUsageInfo `json:"value,omitempty"` +} diff --git a/go/models/license_warning.go b/go/models/license_warning.go new file mode 100644 index 0000000000..ab3c87f088 --- /dev/null +++ b/go/models/license_warning.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicenseWarning license warning +// swagger:model LicenseWarning +type LicenseWarning struct { + + // License warning date. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Date *string `json:"date,omitempty"` + + // License pre warning period. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PreWarn *string `json:"pre_warn,omitempty"` + + // License warning reason. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Reason *string `json:"reason,omitempty"` +} diff --git a/go/models/licensing_action_result.go b/go/models/licensing_action_result.go new file mode 100644 index 0000000000..a19f8778a1 --- /dev/null +++ b/go/models/licensing_action_result.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicensingActionResult licensing action result +// swagger:model LicensingActionResult +type LicensingActionResult struct { + + // Human-readable status/failure message. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Result *string `json:"result,omitempty"` +} diff --git a/go/models/licensing_serial_key_request.go b/go/models/licensing_serial_key_request.go new file mode 100644 index 0000000000..efcc54dec2 --- /dev/null +++ b/go/models/licensing_serial_key_request.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// LicensingSerialKeyRequest licensing serial key request +// swagger:model LicensingSerialKeyRequest +type LicensingSerialKeyRequest struct { + + // Legacy signed license text (deprecated in favor of serial key / on-prem or cloud licensing services). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseText *string `json:"license_text,omitempty"` + + // Serial key text to activate, takes precedence over license_text if both are set. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SerialKey *string `json:"serial_key,omitempty"` +} diff --git a/go/models/management_service.go b/go/models/management_service.go new file mode 100644 index 0000000000..e7ad004e0c --- /dev/null +++ b/go/models/management_service.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementService management service +// swagger:model ManagementService +type ManagementService struct { + + // Management Service Address or Controller Addresses. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ManagementAddresses []string `json:"management_addresses,omitempty"` + + // Management Service name. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementService *string `json:"management_service"` + + // Management Service Ports. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Ports []*ManagementServicePort `json:"ports,omitempty"` +} diff --git a/go/models/management_service_access_grant.go b/go/models/management_service_access_grant.go new file mode 100644 index 0000000000..24af73cefc --- /dev/null +++ b/go/models/management_service_access_grant.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementServiceAccessGrant management service access grant +// swagger:model ManagementServiceAccessGrant +type ManagementServiceAccessGrant struct { + + // Management Service Access Grant name. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + AccessGrant *string `json:"access_grant"` + + // State of the created Access Grant. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Enabled *bool `json:"enabled,omitempty"` + + // Parent Management Service name. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementService *string `json:"management_service"` + + // The target for which Access Grant is to be provided. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + WorkloadSelector *WorkloadSelector `json:"workload_selector"` +} diff --git a/go/models/management_service_access_grant_req.go b/go/models/management_service_access_grant_req.go new file mode 100644 index 0000000000..c4ea992f17 --- /dev/null +++ b/go/models/management_service_access_grant_req.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementServiceAccessGrantReq management service access grant req +// swagger:model ManagementServiceAccessGrantReq +type ManagementServiceAccessGrantReq struct { + + // VCenter Cloud UUID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Management Service Access Grant. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementServiceAccessGrantID *string `json:"management_service_access_grant_id"` + + // Namespace the Management Service Access grant was created under. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Namespace *string `json:"namespace"` + + // VCenter host to be used to get management service access grant. Only applicable to NSX-T Cloud. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterHost *string `json:"vcenter_host"` +} diff --git a/go/models/management_service_port.go b/go/models/management_service_port.go new file mode 100644 index 0000000000..0163448817 --- /dev/null +++ b/go/models/management_service_port.go @@ -0,0 +1,23 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementServicePort management service port +// swagger:model ManagementServicePort +type ManagementServicePort struct { + + // Management Service Port name. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Management Service Port value. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Port *int32 `json:"port"` + + // Management Service Port TLS Configuration. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TLS *ManagementServiceTLSConfiguration `json:"tls,omitempty"` + + // Management Service Port transport protocol. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TransportProtocol *string `json:"transport_protocol,omitempty"` +} diff --git a/go/models/management_service_req.go b/go/models/management_service_req.go new file mode 100644 index 0000000000..61170ca358 --- /dev/null +++ b/go/models/management_service_req.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementServiceReq management service req +// swagger:model ManagementServiceReq +type ManagementServiceReq struct { + + // Management Service Cloud UUID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Management Service ID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ManagementServiceID *string `json:"management_service_id"` + + // Management Service Supervisor ID. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SupervisorID *string `json:"supervisor_id"` + + // VCenter host to be used to get management service. Only applicable to NSX-T Cloud. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterHost *string `json:"vcenter_host"` +} diff --git a/go/models/management_service_tls_configuration.go b/go/models/management_service_tls_configuration.go new file mode 100644 index 0000000000..1fd164ae78 --- /dev/null +++ b/go/models/management_service_tls_configuration.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ManagementServiceTLSConfiguration management service Tls configuration +// swagger:model ManagementServiceTlsConfiguration +type ManagementServiceTLSConfiguration struct { + + // Management Service Port CertificateAuthorityChain. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CertificateAuthorityChain *string `json:"certificate_authority_chain,omitempty"` + + // Management Service Port hostname. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hostname *string `json:"hostname,omitempty"` +} diff --git a/go/models/match_replace_pair.go b/go/models/match_replace_pair.go new file mode 100644 index 0000000000..f8058594cf --- /dev/null +++ b/go/models/match_replace_pair.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// MatchReplacePair match replace pair +// swagger:model MatchReplacePair +type MatchReplacePair any diff --git a/go/models/network_subnet.go b/go/models/network_subnet.go new file mode 100644 index 0000000000..c0620d1d38 --- /dev/null +++ b/go/models/network_subnet.go @@ -0,0 +1,31 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// NetworkSubnet network subnet +// swagger:model NetworkSubnet +type NetworkSubnet struct { + + // It is a reference to an object of type Cloud. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudRef *string `json:"cloud_ref,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Subnet []*SubnetList `json:"subnet,omitempty"` + + // It is a reference to an object of type Tenant. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // It is a reference to an object of type VrfContext. Field introduced in 17.2.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VrfContextRef *string `json:"vrf_context_ref,omitempty"` +} diff --git a/go/models/network_subnet_api_response.go b/go/models/network_subnet_api_response.go new file mode 100644 index 0000000000..e40fd674f3 --- /dev/null +++ b/go/models/network_subnet_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// NetworkSubnetAPIResponse network subnet Api response +// swagger:model NetworkSubnetApiResponse +type NetworkSubnetAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*NetworkSubnet `json:"results,omitempty"` +} diff --git a/go/models/network_subnet_list.go b/go/models/network_subnet_list.go new file mode 100644 index 0000000000..29becb72bd --- /dev/null +++ b/go/models/network_subnet_list.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// NetworkSubnetList network subnet list +// swagger:model NetworkSubnetList +type NetworkSubnetList struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*NetworkSubnet `json:"results,omitempty"` +} diff --git a/go/models/nsx_configuration.go b/go/models/nsx_configuration.go new file mode 100644 index 0000000000..8722629d67 --- /dev/null +++ b/go/models/nsx_configuration.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// NsxConfiguration nsx configuration +// swagger:model NsxConfiguration +type NsxConfiguration any diff --git a/go/models/object_graph_entry.go b/go/models/object_graph_entry.go new file mode 100644 index 0000000000..1be6f881c6 --- /dev/null +++ b/go/models/object_graph_entry.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ObjectGraphEntry object graph entry +// swagger:model ObjectGraphEntry +type ObjectGraphEntry struct { + + // Name of the referenced object. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // URI of the Tenant that owns this object, omitted for global objects with no tenant reference. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` + + // Avi object type/model name of the referenced object (e.g. VirtualService, Pool). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Type *string `json:"type,omitempty"` + + // UUID of the referenced object. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/object_graph_list.go b/go/models/object_graph_list.go new file mode 100644 index 0000000000..19c080e742 --- /dev/null +++ b/go/models/object_graph_list.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// ObjectGraphList object graph list +// swagger:model ObjectGraphList +type ObjectGraphList struct { + + // Number of entries in results. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // Objects returned by the referred_by/refers_to graph traversal. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*ObjectGraphEntry `json:"results,omitempty"` +} diff --git a/go/models/openstack_login.go b/go/models/openstack_login.go new file mode 100644 index 0000000000..3f4b18838f --- /dev/null +++ b/go/models/openstack_login.go @@ -0,0 +1,30 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// OpenstackLogin openstack login +// swagger:model OpenstackLogin +type OpenstackLogin struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AdminTenant *string `json:"admin_tenant,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AuthURL *string `json:"auth_url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + KeystoneHost *string `json:"keystone_host,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Password *string `json:"password"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Region *string `json:"region,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Username *string `json:"username"` +} diff --git a/go/models/ops_history.go b/go/models/ops_history.go index 133cfb67c6..918a207ad3 100644 --- a/go/models/ops_history.go +++ b/go/models/ops_history.go @@ -38,6 +38,9 @@ type OpsHistory struct { // Record of Pre/Post snapshot captured for current upgrade operation. It is a reference to an object of type StatediffOperation. Field introduced in 21.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. StatediffRef *string `json:"statediff_ref,omitempty"` + // Flag indicating whether the upgrade operation was initiated as a system-upgrade (applying to Controller and all Service Engine groups). Field introduced in 32.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + System *bool `json:"system,omitempty"` + // Controller events for Upgrade operation. Field introduced in 20.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. UpgradeEvents []*EventMap `json:"upgrade_events,omitempty"` diff --git a/go/models/pool_inventory_server.go b/go/models/pool_inventory_server.go new file mode 100644 index 0000000000..5f6664a897 --- /dev/null +++ b/go/models/pool_inventory_server.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// PoolInventoryServer pool inventory server +// swagger:model PoolInventoryServer +type PoolInventoryServer struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Config *PoolInventoryServerConfig `json:"config,omitempty"` + + // Present when the 'health_score' resource is requested. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + HealthScore *HealthScoreSummary `json:"health_score,omitempty"` + + // Present when the 'metrics' resource is requested. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Metrics *InventoryMetrics `json:"metrics,omitempty"` + + // URL of the pool this server belongs to. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PoolRef *string `json:"pool_ref,omitempty"` + + // Present when the 'runtime' resource is requested. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Runtime *PoolInventoryServerRuntime `json:"runtime,omitempty"` +} diff --git a/go/models/pool_inventory_server_config.go b/go/models/pool_inventory_server_config.go new file mode 100644 index 0000000000..44ef59df5a --- /dev/null +++ b/go/models/pool_inventory_server_config.go @@ -0,0 +1,34 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// PoolInventoryServerConfig pool inventory server config +// swagger:model PoolInventoryServerConfig +type PoolInventoryServerConfig struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DefaultServerPort *uint32 `json:"default_server_port,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Enabled *bool `json:"enabled,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Hostname *string `json:"hostname,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IP *IPAddr `json:"ip,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Port *uint32 `json:"port,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ratio *uint32 `json:"ratio,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` +} diff --git a/go/models/pool_inventory_server_list.go b/go/models/pool_inventory_server_list.go new file mode 100644 index 0000000000..e90905957f --- /dev/null +++ b/go/models/pool_inventory_server_list.go @@ -0,0 +1,20 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// PoolInventoryServerList pool inventory server list +// swagger:model PoolInventoryServerList +type PoolInventoryServerList struct { + + // Total number of servers matching the query. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Count *uint32 `json:"count"` + + // URL of the next page of results, if any. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Next *string `json:"next,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Results []*PoolInventoryServer `json:"results,omitempty"` +} diff --git a/go/models/pool_inventory_server_runtime.go b/go/models/pool_inventory_server_runtime.go new file mode 100644 index 0000000000..fe1200909f --- /dev/null +++ b/go/models/pool_inventory_server_runtime.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// PoolInventoryServerRuntime pool inventory server runtime +// swagger:model PoolInventoryServerRuntime +type PoolInventoryServerRuntime struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + OperStatus *OperationalStatus `json:"oper_status,omitempty"` +} diff --git a/go/models/rediscover_vcenter_param.go b/go/models/rediscover_vcenter_param.go new file mode 100644 index 0000000000..8c59d74064 --- /dev/null +++ b/go/models/rediscover_vcenter_param.go @@ -0,0 +1,14 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// RediscoverVcenterParam rediscover vcenter param +// swagger:model RediscoverVcenterParam +type RediscoverVcenterParam struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Cloud *string `json:"cloud"` +} diff --git a/go/models/refresh_session_response.go b/go/models/refresh_session_response.go new file mode 100644 index 0000000000..061cc8f3b0 --- /dev/null +++ b/go/models/refresh_session_response.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// RefreshSessionResponse refresh session response +// swagger:model RefreshSessionResponse +type RefreshSessionResponse any diff --git a/go/models/s_e_bandwidth_limit.go b/go/models/s_e_bandwidth_limit.go new file mode 100644 index 0000000000..f5aeb56adc --- /dev/null +++ b/go/models/s_e_bandwidth_limit.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SEBandwidthLimit s e bandwidth limit +// swagger:model SEBandwidthLimit +type SEBandwidthLimit struct { + + // Total number of Service Engines for bandwidth based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Count *uint32 `json:"count,omitempty"` + + // Maximum bandwidth allowed by each Service Engine. Enum options - SE_BANDWIDTH_UNLIMITED, SE_BANDWIDTH_25M, SE_BANDWIDTH_200M, SE_BANDWIDTH_1000M, SE_BANDWIDTH_10000M. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Type *string `json:"type,omitempty"` +} diff --git a/go/models/se_group_resume_params.go b/go/models/se_group_resume_params.go new file mode 100644 index 0000000000..eb7f037f4c --- /dev/null +++ b/go/models/se_group_resume_params.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SeGroupResumeParams se group resume params +// swagger:model SeGroupResumeParams +type SeGroupResumeParams struct { + + // This flag is set to run the pre-checks without the subsequent upgrade operations. Field introduced in 22.1.6, 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PrechecksOnly *bool `json:"prechecks_only,omitempty"` + + // Apply options while resuming SE group upgrade operations. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeGroupOptions *SeGroupResumeOptions `json:"se_group_options,omitempty"` + + // This field identifies the list of SE groups for which the resume operation is applicable. It is a reference to an object of type ServiceEngineGroup. Field introduced in 18.2.6. Minimum of 1 items required. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeGroupRefs []string `json:"se_group_refs,omitempty"` + + // This is flag when set as true skips few optional must checks. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SkipWarnings *bool `json:"skip_warnings,omitempty"` +} diff --git a/go/models/se_group_version.go b/go/models/se_group_version.go new file mode 100644 index 0000000000..37e39ea04b --- /dev/null +++ b/go/models/se_group_version.go @@ -0,0 +1,22 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SeGroupVersion se group version +// swagger:model SeGroupVersion +type SeGroupVersion struct { + + // Fips mode for Service Engine Group. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipsMode *bool `json:"fips_mode,omitempty"` + + // Name of the service engine group. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Current patch version for the service engine group. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Patch *string `json:"patch,omitempty"` + + // Current base version for the service engine group. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Version *string `json:"version,omitempty"` +} diff --git a/go/models/se_version.go b/go/models/se_version.go new file mode 100644 index 0000000000..8b75bbf334 --- /dev/null +++ b/go/models/se_version.go @@ -0,0 +1,24 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SeVersion se version +// swagger:model SeVersion +type SeVersion struct { + + // Fips mode for Service Engine. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipsMode *bool `json:"fips_mode,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Patch level for service engine. Field introduced in 17.2.2. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Patch *string `json:"patch,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Version *string `json:"version"` +} diff --git a/go/models/single_license.go b/go/models/single_license.go new file mode 100644 index 0000000000..002c49ba4f --- /dev/null +++ b/go/models/single_license.go @@ -0,0 +1,100 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SingleLicense single license +// swagger:model SingleLicense +type SingleLicense struct { + + // Features supported by the add-on license. Enum options - LICENSE_UNKNOWN_ADDON, LICENSE_LEGACY_ADDON. Field introduced in 21.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Addons []string `json:"addons,omitempty"` + + // Total number of Service Engine burst cores for core based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + BurstCores *uint32 `json:"burst_cores,omitempty"` + + // Total licensing capacity available for all the resoures available in a single license. Field introduced in 21.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Capacity *float64 `json:"capacity,omitempty"` + + // Number of concurrent VMware Horizon users. Field introduced in 20.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ccu *uint32 `json:"ccu,omitempty"` + + // Central license service id. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ClsID *string `json:"cls_id,omitempty"` + + // Number of Service Engine cores in non-container clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Cores *float64 `json:"cores,omitempty"` + + // Total number of cpu cores. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CPUCores *float64 `json:"cpu_cores,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CreatedOn *string `json:"created_on,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + CustomerName *string `json:"customer_name"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + EnforcedParams []string `json:"enforced_params,omitempty"` + + // Flag to track license expiry. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Expired *bool `json:"expired,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LastUpdate *string `json:"last_update,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseID *string `json:"license_id,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + LicenseName *string `json:"license_name"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseString *string `json:"license_string,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseTier []string `json:"license_tier,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + LicenseType *string `json:"license_type,omitempty"` + + // Number of Service Engines hosts in container clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MaxSes *uint32 `json:"max_ses,omitempty"` + + // License policy details. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Policy *LicensePolicy `json:"policy,omitempty"` + + // Service Engine bandwidth limits for bandwidth based licenses. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SeBandwidthLimits []*SEBandwidthLimit `json:"se_bandwidth_limits,omitempty"` + + // Serial key (Hyphen separated 25 char wide alphanumeric key Ex AA123-23BAS-383AS-383UD-FHSFG). Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SerialKey *string `json:"serial_key,omitempty"` + + // Total number of service cores equivalent to all the resoures available in the single license. Field introduced in 20.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ServiceCores *float64 `json:"service_cores,omitempty"` + + // Number of physical cpu sockets across Service Engines in no access and linux server clouds. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Sockets *uint32 `json:"sockets,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StartOn *string `json:"start_on,omitempty"` + + // Tenant uuid. Field introduced in 30.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantUUID *string `json:"tenant_uuid,omitempty"` + + // Specifies the licensed tier. Enum options - ENTERPRISE_16, ENTERPRISE, ENTERPRISE_18, BASIC, ESSENTIALS, ENTERPRISE_WITH_CLOUD_SERVICES. Field introduced in 17.2.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TierType *string `json:"tier_type,omitempty"` + + // Units in which resources will be licensed. Enum options - UNNOWN_UNIT, SERVICE_UNIT, LEGACY_ADDON_UNIT. Field introduced in 21.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Unit *string `json:"unit,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + ValidUntil *string `json:"valid_until"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Version *string `json:"version,omitempty"` +} diff --git a/go/models/ssh_se_deployment.go b/go/models/ssh_se_deployment.go new file mode 100644 index 0000000000..a6c3609b7d --- /dev/null +++ b/go/models/ssh_se_deployment.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SSHSeDeployment SSH se deployment +// swagger:model SSHSeDeployment +type SSHSeDeployment any diff --git a/go/models/subnet_list.go b/go/models/subnet_list.go new file mode 100644 index 0000000000..37c8a7af10 --- /dev/null +++ b/go/models/subnet_list.go @@ -0,0 +1,28 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SubnetList subnet list +// swagger:model SubnetList +type SubnetList struct { + + // If true, capable of floating/elastic IP association. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipAvailable *bool `json:"fip_available,omitempty"` + + // If fip_available is True, the list of associated FloatingIP subnets, possibly empty if unsupported or implictly defined by the Cloud. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FloatingipSubnets []*FloatingIPSubnet `json:"floatingip_subnets,omitempty"` + + // Subnet name. Field introduced in 17.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Prefix *IPAddrPrefix `json:"prefix,omitempty"` + + // reserved ranges of IPs for VirtualService IP allocation with Infoblox as the IPAM provider. Field introduced in 31.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Ranges []*IPAddrRange `json:"ranges,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/switch_to_tenant_response.go b/go/models/switch_to_tenant_response.go new file mode 100644 index 0000000000..831b4129e3 --- /dev/null +++ b/go/models/switch_to_tenant_response.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SwitchToTenantResponse switch to tenant response +// swagger:model SwitchToTenantResponse +type SwitchToTenantResponse struct { + + // Caller's effective privileges (resource + access type) in the requested tenant. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Privileges []*Permission `json:"privileges,omitempty"` +} diff --git a/go/models/system_configuration_compliance_mode.go b/go/models/system_configuration_compliance_mode.go new file mode 100644 index 0000000000..64d3f8a575 --- /dev/null +++ b/go/models/system_configuration_compliance_mode.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SystemConfigurationComplianceMode system configuration compliance mode +// swagger:model SystemConfigurationComplianceMode +type SystemConfigurationComplianceMode struct { + + // Common criteria mode's desired state. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CommonCriteriaMode *bool `json:"common_criteria_mode,omitempty"` + + // Command status and additional details. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Details []string `json:"details,omitempty"` + + // Fips mode's desired state. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FipsMode *bool `json:"fips_mode,omitempty"` + + // Force Compliance mode recovery in errored state. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Force *bool `json:"force,omitempty"` + + // Tenant in which the command is invoked. It is a reference to an object of type Tenant. Field introduced in 20.1.5. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` +} diff --git a/go/models/system_user_token_checkout.go b/go/models/system_user_token_checkout.go new file mode 100644 index 0000000000..68f44aecea --- /dev/null +++ b/go/models/system_user_token_checkout.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// SystemUserTokenCheckout system user token checkout +// swagger:model SystemUserTokenCheckout +type SystemUserTokenCheckout any diff --git a/go/models/tcp_attacks.go b/go/models/tcp_attacks.go new file mode 100644 index 0000000000..2498ed06cf --- /dev/null +++ b/go/models/tcp_attacks.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// TCPAttacks Tcp attacks +// swagger:model TcpAttacks +type TCPAttacks any diff --git a/go/models/udp_attacks.go b/go/models/udp_attacks.go new file mode 100644 index 0000000000..5047970586 --- /dev/null +++ b/go/models/udp_attacks.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UDPAttacks Udp attacks +// swagger:model UdpAttacks +type UDPAttacks any diff --git a/go/models/ui_error_ack.go b/go/models/ui_error_ack.go new file mode 100644 index 0000000000..3d65e95e11 --- /dev/null +++ b/go/models/ui_error_ack.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UIErrorAck Ui error ack +// swagger:model UiErrorAck +type UIErrorAck any diff --git a/go/models/upgrade_preview_response.go b/go/models/upgrade_preview_response.go new file mode 100644 index 0000000000..acf76dbb6c --- /dev/null +++ b/go/models/upgrade_preview_response.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UpgradePreviewResponse upgrade preview response +// swagger:model UpgradePreviewResponse +type UpgradePreviewResponse struct { + + // This field contains the list of checks. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Checks []string `json:"checks,omitempty"` + + // Status reason for the upgrade operation executed. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *string `json:"status,omitempty"` + + // Status code for the upgrade operation executed. Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO, SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN, SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_FAILED.... Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StatusCode *string `json:"status_code,omitempty"` +} diff --git a/go/models/upgrade_response.go b/go/models/upgrade_response.go new file mode 100644 index 0000000000..c68896df8d --- /dev/null +++ b/go/models/upgrade_response.go @@ -0,0 +1,19 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UpgradeResponse upgrade response +// swagger:model UpgradeResponse +type UpgradeResponse struct { + + // Status reason for the upgrade operation executed. Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Status *string `json:"status,omitempty"` + + // Status code for the upgrade operation executed. Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO, SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN, SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_FAILED.... Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StatusCode *string `json:"status_code,omitempty"` + + // System report generated for the upgrade operation. It is a reference to an object of type SystemReport. Field introduced in 22.1.6, 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + SystemReportRef *string `json:"system_report_ref,omitempty"` +} diff --git a/go/models/upgrade_status_info.go b/go/models/upgrade_status_info.go index fb142a2789..2a5622d373 100644 --- a/go/models/upgrade_status_info.go +++ b/go/models/upgrade_status_info.go @@ -135,7 +135,7 @@ type UpgradeStatusInfo struct { // Record of Pre/Post snapshot captured for current upgrade operation. It is a reference to an object of type StatediffOperation. Field introduced in 21.1.3. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. StatediffRef *string `json:"statediff_ref,omitempty"` - // Flag is set only in the cluster if the upgrade is initiated as a system-upgrade. . Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Flag indicating whether the upgrade operation was initiated as a system-upgrade (applying to Controller and all Service Engine groups). Field introduced in 18.2.6. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. System *bool `json:"system,omitempty"` // Tracks the list of reports created for node. It is a reference to an object of type SystemReport. Field introduced in 22.1.6, 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. diff --git a/go/models/upload_params.go b/go/models/upload_params.go new file mode 100644 index 0000000000..eb67b96edf --- /dev/null +++ b/go/models/upload_params.go @@ -0,0 +1,59 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UploadParams upload params +// swagger:model UploadParams +type UploadParams struct { + + // Allow updating an existing FileObject with the same name. Currently enforced for OPEN_API_SPEC type only without this flag, a POST whose name matches an existing OAS FileObject returns HTTP 409. . Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AllowUpdate *bool `json:"allow_update,omitempty"` + + // Signal to merge all previously uploaded parts into the final file. Set to true on the last request of a chunked upload sequence. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Collate *bool `json:"collate,omitempty"` + + // Whether the file is gzip-compressed. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Compressed *bool `json:"compressed,omitempty"` + + // A short user-friendly description related to the uploaded file. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Description *string `json:"description,omitempty"` + + // Timestamp indicating when the file can be automatically deleted. Used for garbage collection by CRL and IP Reputation file types. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ExpiresAt *string `json:"expires_at,omitempty"` + + // This field indicates the file format(Avi/Maxmind and v4/v6/v4-v6) of GSLB geodb file type. . Enum options - GSLB_GEODB_FILE_FORMAT_AVI, GSLB_GEODB_FILE_FORMAT_MAXMIND_CITY, GSLB_GEODB_FILE_FORMAT_MAXMIND_CITY_V6, GSLB_GEODB_FILE_FORMAT_MAXMIND_CITY_V4_AND_V6, GSLB_GEODB_FILE_FORMAT_AVI_V6, GSLB_GEODB_FILE_FORMAT_AVI_V4_AND_V6. Field introduced in 31.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + GslbGeodbFormat *string `json:"gslb_geodb_format,omitempty"` + + // This field determines if an object is replicated across the GSLB federation (true) or visible within the controller-cluster and its service engines (false). Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IsFederated *bool `json:"is_federated,omitempty"` + + // Name of the file. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Part identifier for chunked or multipart uploads. When set, indicates a partial upload in progress. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Part *string `json:"part,omitempty"` + + // Source Path of the File in the local disk. Only applicable in CLI. Field introduced in 31.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Path *string `json:"path,omitempty"` + + // Enforce read-only on the file. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ReadOnly *bool `json:"read_only,omitempty"` + + // Restrict download of the file. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + RestrictDownload *bool `json:"restrict_download,omitempty"` + + // Size of the file in bytes. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Size *uint64 `json:"size,omitempty"` + + // Type of the file. Enum options - OTHER_FILE_TYPES, IP_REPUTATION, GEO_DB, TECH_SUPPORT, HSMPACKAGES, IPAMDNSSCRIPTS, CONTROLLER_IMAGE, CRL_DATA, IP_REPUTATION_IPV6, GSLB_GEO_DB, CSRF_JS, KNOWN_HOSTS, OPEN_API_SPEC. Field introduced in 31.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Type *string `json:"type,omitempty"` + + // Interval in minutes to check for update. If not specified, interval will be 1 day. This field is applicable in the CRL context. . Allowed values are 30-525600. Field introduced in 30.2.1. Unit is MIN. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UpdateInterval *int32 `json:"update_interval,omitempty"` + + // URL to download the CRL file. This field is applicable in the CRL context. . Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + URL *string `json:"url,omitempty"` +} diff --git a/go/models/upload_params_api_response.go b/go/models/upload_params_api_response.go new file mode 100644 index 0000000000..932863ff3d --- /dev/null +++ b/go/models/upload_params_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UploadParamsAPIResponse upload params Api response +// swagger:model UploadParamsApiResponse +type UploadParamsAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*UploadParams `json:"results,omitempty"` +} diff --git a/go/models/user_preferences.go b/go/models/user_preferences.go new file mode 100644 index 0000000000..1248245147 --- /dev/null +++ b/go/models/user_preferences.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UserPreferences user preferences +// swagger:model UserPreferences +type UserPreferences struct { + + // UI-owned preferences, JSON-encoded as a string. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UIProperty *string `json:"ui_property,omitempty"` +} diff --git a/go/models/user_tenant_list_response.go b/go/models/user_tenant_list_response.go new file mode 100644 index 0000000000..67c5168c11 --- /dev/null +++ b/go/models/user_tenant_list_response.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UserTenantListResponse user tenant list response +// swagger:model UserTenantListResponse +type UserTenantListResponse struct { + + // Every tenant the caller has access to. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Tenants []*Tenant `json:"tenants,omitempty"` + + // Subset of the caller's own user profile fields. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + User *UserTenantListUserInfo `json:"user,omitempty"` +} diff --git a/go/models/user_tenant_list_user_info.go b/go/models/user_tenant_list_user_info.go new file mode 100644 index 0000000000..18ef474b6e --- /dev/null +++ b/go/models/user_tenant_list_user_info.go @@ -0,0 +1,37 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UserTenantListUserInfo user tenant list user info +// swagger:model UserTenantListUserInfo +type UserTenantListUserInfo struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DefaultTenantRef *string `json:"default_tenant_ref,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Email *string `json:"email,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + FullName *string `json:"full_name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + IsSuperuser *bool `json:"is_superuser,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Local *bool `json:"local,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // UI-owned preferences, JSON-encoded as a string. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UIProperty *string `json:"ui_property,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Username *string `json:"username,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` +} diff --git a/go/models/user_token_checkout.go b/go/models/user_token_checkout.go new file mode 100644 index 0000000000..24b8488531 --- /dev/null +++ b/go/models/user_token_checkout.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UserTokenCheckout user token checkout +// swagger:model UserTokenCheckout +type UserTokenCheckout any diff --git a/go/models/user_token_checkout_response.go b/go/models/user_token_checkout_response.go new file mode 100644 index 0000000000..fba570558f --- /dev/null +++ b/go/models/user_token_checkout_response.go @@ -0,0 +1,16 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// UserTokenCheckoutResponse user token checkout response +// swagger:model UserTokenCheckoutResponse +type UserTokenCheckoutResponse struct { + + // The generated token key (secret). Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Token *string `json:"token,omitempty"` + + // Username the token was issued for. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + User *string `json:"user,omitempty"` +} diff --git a/go/models/v_i_admin_credentials.go b/go/models/v_i_admin_credentials.go new file mode 100644 index 0000000000..a519e33c24 --- /dev/null +++ b/go/models/v_i_admin_credentials.go @@ -0,0 +1,26 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VIAdminCredentials v i admin credentials +// swagger:model VIAdminCredentials +type VIAdminCredentials struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Password *string `json:"password,omitempty"` + + // Enum options - NO_ACCESS, READ_ACCESS, WRITE_ACCESS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Privilege *string `json:"privilege,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterURL *string `json:"vcenter_url"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ViMgrToken *string `json:"vi_mgr_token,omitempty"` +} diff --git a/go/models/v_i_mgr_vcenter_runtime.go b/go/models/v_i_mgr_vcenter_runtime.go new file mode 100644 index 0000000000..b51e7e993f --- /dev/null +++ b/go/models/v_i_mgr_vcenter_runtime.go @@ -0,0 +1,104 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VIMgrVcenterRuntime v i mgr vcenter runtime +// swagger:model VIMgrVcenterRuntime +type VIMgrVcenterRuntime struct { + + // UNIX time since epoch in microseconds. Units(MICROSECONDS). + // Read Only: true + LastModified *string `json:"_last_modified,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + APIVersion *string `json:"api_version,omitempty"` + + // It is a reference to an object of type Cloud. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudRef *string `json:"cloud_ref,omitempty"` + + // It is a reference to an object of type VIMgrDCRuntime. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DatacenterRefs []string `json:"datacenter_refs,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DiscEndTime *string `json:"disc_end_time,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DiscStartTime *string `json:"disc_start_time,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DiscoveredDatacenter *string `json:"discovered_datacenter,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InventoryProgress *string `json:"inventory_progress,omitempty"` + + // Enum options - VCENTER_DISCOVERY_BAD_CREDENTIALS, VCENTER_DISCOVERY_RETRIEVING_DC, VCENTER_DISCOVERY_WAITING_DC, VCENTER_DISCOVERY_RETRIEVING_NW, VCENTER_DISCOVERY_ONGOING, VCENTER_DISCOVERY_RESYNCING, VCENTER_DISCOVERY_COMPLETE, VCENTER_DISCOVERY_DELETING_VCENTER, VCENTER_DISCOVERY_FAILURE, VCENTER_DISCOVERY_COMPLETE_NO_MGMT_NW, VCENTER_DISCOVERY_COMPLETE_PER_TENANT_IP_ROUTE, VCENTER_DISCOVERY_MAKING_SE_OVA, VCENTER_DISCOVERY_RESYNC_FAILED, VCENTER_DISCOVERY_OBJECT_LIMIT_REACHED. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + InventoryState *string `json:"inventory_state,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + ManagementNetwork *string `json:"management_network,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Name *string `json:"name"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumClusters *int64 `json:"num_clusters,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumDcs *int64 `json:"num_dcs,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumHosts *int64 `json:"num_hosts,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumNws *int64 `json:"num_nws,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumVcenterReqPending *int64 `json:"num_vcenter_req_pending,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + NumVms *int64 `json:"num_vms,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Password *string `json:"password"` + + // Enum options - NO_ACCESS, READ_ACCESS, WRITE_ACCESS. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Privilege *string `json:"privilege,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Progress *int64 `json:"progress,omitempty"` + + // It is a reference to an object of type Tenant. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + TenantRef *string `json:"tenant_ref,omitempty"` + + // Enum options - CLOUD_NONE, CLOUD_VCENTER, CLOUD_OPENSTACK, CLOUD_AWS, CLOUD_VCA, CLOUD_APIC, CLOUD_MESOS, CLOUD_LINUXSERVER, CLOUD_DOCKER_UCP, CLOUD_RANCHER, CLOUD_OSHIFT_K8S, CLOUD_AZURE, CLOUD_GCP, CLOUD_NSXT. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Type *string `json:"type"` + + // url + // Read Only: true + URL *string `json:"url,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Username *string `json:"username"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + UUID *string `json:"uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterConnected *bool `json:"vcenter_connected,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterFullname *string `json:"vcenter_fullname,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterTemplateSeLocation *string `json:"vcenter_template_se_location,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + VcenterURL *string `json:"vcenter_url"` +} diff --git a/go/models/v_i_mgr_vcenter_runtime_api_response.go b/go/models/v_i_mgr_vcenter_runtime_api_response.go new file mode 100644 index 0000000000..7c3ee959d6 --- /dev/null +++ b/go/models/v_i_mgr_vcenter_runtime_api_response.go @@ -0,0 +1,21 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VIMgrVcenterRuntimeAPIResponse v i mgr vcenter runtime Api response +// swagger:model VIMgrVcenterRuntimeApiResponse +type VIMgrVcenterRuntimeAPIResponse struct { + + // count + // Required: true + Count *int32 `json:"count"` + + // next + Next *string `json:"next,omitempty"` + + // results + // Required: true + Results []*VIMgrVcenterRuntime `json:"results,omitempty"` +} diff --git a/go/models/v_i_retrieve_p_g_names.go b/go/models/v_i_retrieve_p_g_names.go new file mode 100644 index 0000000000..09d5de49d6 --- /dev/null +++ b/go/models/v_i_retrieve_p_g_names.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VIRetrievePGNames v i retrieve p g names +// swagger:model VIRetrievePGNames +type VIRetrievePGNames struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Datacenter *string `json:"datacenter,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Password *string `json:"password,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Username *string `json:"username,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterURL *string `json:"vcenter_url,omitempty"` +} diff --git a/go/models/v_i_se_vm_ip_conf_params.go b/go/models/v_i_se_vm_ip_conf_params.go new file mode 100644 index 0000000000..7118ff4b3c --- /dev/null +++ b/go/models/v_i_se_vm_ip_conf_params.go @@ -0,0 +1,38 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VISeVMIPConfParams v i se Vm Ip conf params +// swagger:model VISeVmIpConfParams +type VISeVMIPConfParams struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DefaultGw *string `json:"default_gw,omitempty"` + + // Default Gateway for IP6 Address of the SE. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DefaultGw6 *string `json:"default_gw6,omitempty"` + + // Mgmt vNic IP6 address if static. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtIp6Addr *string `json:"mgmt_ip6_addr,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtIPAddr *string `json:"mgmt_ip_addr,omitempty"` + + // Enum options - VNIC_IP_TYPE_DHCP, VNIC_IP_TYPE_STATIC. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + MgmtIPType *string `json:"mgmt_ip_type"` + + // Management vNIC is configured with IPv4 address. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtIPV4Enable *bool `json:"mgmt_ip_v4_enable,omitempty"` + + // Management vNIC is configured with IPv6 address. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtIPV6Enable *bool `json:"mgmt_ip_v6_enable,omitempty"` + + // Mgmt vNic IP6 address mask if static. Field introduced in 30.2.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtNet6Mask *string `json:"mgmt_net6_mask,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + MgmtNetMask *string `json:"mgmt_net_mask,omitempty"` +} diff --git a/go/models/v_i_set_mgmt_ip_s_e_req.go b/go/models/v_i_set_mgmt_ip_s_e_req.go new file mode 100644 index 0000000000..ee1c4e5e5b --- /dev/null +++ b/go/models/v_i_set_mgmt_ip_s_e_req.go @@ -0,0 +1,36 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VISetMgmtIPSEReq v i set mgmt Ip s e req +// swagger:model VISetMgmtIpSEReq +type VISetMgmtIPSEReq struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Admin *VIAdminCredentials `json:"admin,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + AllVnicConnected *bool `json:"all_vnic_connected,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + DcUUID *string `json:"dc_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + IPParams *VISeVMIPConfParams `json:"ip_params"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + PowerOn *bool `json:"power_on,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + RmCookie *string `json:"rm_cookie,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + SevmUUID *string `json:"sevm_uuid"` +} diff --git a/go/models/vcenter_inventory_diag_req.go b/go/models/vcenter_inventory_diag_req.go new file mode 100644 index 0000000000..79626ecccb --- /dev/null +++ b/go/models/vcenter_inventory_diag_req.go @@ -0,0 +1,13 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VcenterInventoryDiagReq vcenter inventory diag req +// swagger:model VcenterInventoryDiagReq +type VcenterInventoryDiagReq struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` +} diff --git a/go/models/vcenter_login.go b/go/models/vcenter_login.go new file mode 100644 index 0000000000..3c97adca13 --- /dev/null +++ b/go/models/vcenter_login.go @@ -0,0 +1,25 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VcenterLogin vcenter login +// swagger:model VcenterLogin +type VcenterLogin struct { + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + CloudUUID *string `json:"cloud_uuid,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Password *string `json:"password,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + StartTs *uint64 `json:"start_ts,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Username *string `json:"username,omitempty"` + + // Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + VcenterURL *string `json:"vcenter_url,omitempty"` +} diff --git a/go/models/vs_apic_extension.go b/go/models/vs_apic_extension.go new file mode 100644 index 0000000000..713f12057a --- /dev/null +++ b/go/models/vs_apic_extension.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VsApicExtension vs apic extension +// swagger:model VsApicExtension +type VsApicExtension any diff --git a/go/models/vs_placement_resolution_info.go b/go/models/vs_placement_resolution_info.go new file mode 100644 index 0000000000..034060f1e7 --- /dev/null +++ b/go/models/vs_placement_resolution_info.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// VsPlacementResolutionInfo vs placement resolution info +// swagger:model VsPlacementResolutionInfo +type VsPlacementResolutionInfo any diff --git a/go/models/waf_learning.go b/go/models/waf_learning.go new file mode 100644 index 0000000000..165a6ae843 --- /dev/null +++ b/go/models/waf_learning.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// WafLearning waf learning +// swagger:model WafLearning +type WafLearning any diff --git a/go/models/waf_policy_whitelist.go b/go/models/waf_policy_whitelist.go new file mode 100644 index 0000000000..e2a4bcf85f --- /dev/null +++ b/go/models/waf_policy_whitelist.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// WafPolicyWhitelist waf policy whitelist +// swagger:model WafPolicyWhitelist +type WafPolicyWhitelist any diff --git a/go/models/waf_policy_whitelist_rule.go b/go/models/waf_policy_whitelist_rule.go new file mode 100644 index 0000000000..93995ae20b --- /dev/null +++ b/go/models/waf_policy_whitelist_rule.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// WafPolicyWhitelistRule waf policy whitelist rule +// swagger:model WafPolicyWhitelistRule +type WafPolicyWhitelistRule any diff --git a/go/models/waf_whitelist_log.go b/go/models/waf_whitelist_log.go new file mode 100644 index 0000000000..4702e3e4b6 --- /dev/null +++ b/go/models/waf_whitelist_log.go @@ -0,0 +1,9 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// WafWhitelistLog waf whitelist log +// swagger:model WafWhitelistLog +type WafWhitelistLog any diff --git a/go/models/workload_selector.go b/go/models/workload_selector.go new file mode 100644 index 0000000000..4dda0df9af --- /dev/null +++ b/go/models/workload_selector.go @@ -0,0 +1,17 @@ +// Copyright 2021 VMware, Inc. +// SPDX-License-Identifier: Apache License 2.0 +package models + +// This file is auto-generated. + +// WorkloadSelector workload selector +// swagger:model WorkloadSelector +type WorkloadSelector struct { + + // The target name for which Access Grant is to be provided. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + Name *string `json:"name,omitempty"` + + // The target type for which Access Grant is to be provided. Field introduced in 32.1.1. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition. + // Required: true + Type *string `json:"type"` +}